Merge pull request #3131 from evanphx/tags

Copy an Batch tags to each point before marshalling
pull/3143/head
Jason Wilder 2015-06-25 15:12:58 -06:00
commit bf89b177a7
1 changed files with 4 additions and 0 deletions

View File

@ -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
}