Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
Deprecate the StringTag.set() overload taking a StringTag. (#262)
Browse files Browse the repository at this point in the history
It's not a common scenario to use a Tag *key* as the tag value.
  • Loading branch information
carlosalberto authored Mar 28, 2018
1 parent 242ba95 commit 4c5dfb5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ public void set(Span span, String tagValue) {
span.setTag(super.key, tagValue);
}

/**
* @deprecated as using the tag *key* as tag value is not usually required.
*/
@Deprecated
public void set(Span span, StringTag tag) {
span.setTag(super.key, tag.key);
}
Expand Down

0 comments on commit 4c5dfb5

Please sign in to comment.