Skip to content

Commit

Permalink
Merge pull request #28 from signalfx/collection-metrics
Browse files Browse the repository at this point in the history
Omit trailing comma when no extra dimensions
  • Loading branch information
keitwb authored Feb 16, 2018
2 parents 7ee055c + 7ca110d commit 6c01155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def submit(self, type, type_instance, value, db=None, extra_dims=None):

encoded_dims = self.encode_dims(discovered_dims)
if self.dimensions:
encoded_dims = self.dimensions + "," + encoded_dims
encoded_dims += ("," if encoded_dims else "") + self.dimensions

# set plugin_instance
if encoded_dims:
Expand Down

0 comments on commit 6c01155

Please sign in to comment.