Merge pull request #3131 from evanphx/tags
Copy an Batch tags to each point before marshallingpull/3143/head
commit
bf89b177a7
|
@ -129,6 +129,10 @@ func (c *Client) Write(bp BatchPoints) (*Response, error) {
|
|||
return nil, err
|
||||
}
|
||||
} else {
|
||||
for k, v := range bp.Tags {
|
||||
p.Tags[k] = v
|
||||
}
|
||||
|
||||
if _, err := b.WriteString(p.MarshalString()); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue