no message

This commit is contained in:
wusheng 2017-04-25 16:08:09 +08:00
parent 2f0a947169
commit 737e6a57a9
1 changed files with 3 additions and 1 deletions

View File

@ -24,8 +24,10 @@ 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 || value instanceof Short)
else if (value instanceof Integer)
ContextManager.activeSpan().setTag(key, (Integer)value);
else if (value instanceof Short)
ContextManager.activeSpan().setTag(key, ((Short)value).intValue());
else
ContextManager.activeSpan().setTag(key, value.toString());
}