If the tag value is short, process it as an integer. It is a bug for ot+agent.

This commit is contained in:
wusheng 2017-04-25 16:07:11 +08:00
parent c172f34c0b
commit 2f0a947169
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ public class SpanSetTagInterceptor implements InstanceMethodsAroundInterceptor {
ContextManager.activeSpan().setTag(key, (String)value);
else if (value instanceof Boolean)
ContextManager.activeSpan().setTag(key, (Boolean)value);
else if (value instanceof Integer)
else if (value instanceof Integer || value instanceof Short)
ContextManager.activeSpan().setTag(key, (Integer)value);
else
ContextManager.activeSpan().setTag(key, value.toString());