diff --git a/opentracing-api/src/main/java/io/opentracing/tag/StringTag.java b/opentracing-api/src/main/java/io/opentracing/tag/StringTag.java index 06e13f5b..f3904dd7 100644 --- a/opentracing-api/src/main/java/io/opentracing/tag/StringTag.java +++ b/opentracing-api/src/main/java/io/opentracing/tag/StringTag.java @@ -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); }