Skip to content

Commit

Permalink
[docs] explicit that set_metric() only add a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuele Palazzetti committed Jul 5, 2017
1 parent a401b7a commit 8ed93b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ddtrace/span.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ def get_tag(key)
@meta[key]
end

# Set the given key / value metric pair on the span. Keys must be string.
# Values must be floating point numbers.
# This method sets a tag for a floating point value for the given key. It acts
# like `set_tag()` and it simply add a tag without further processing.
def set_metric(key, value)
# enforce that the value is a floating point number
value = Float(value)
Expand Down

0 comments on commit 8ed93b8

Please sign in to comment.