提交 2f0a9471 编写于 作者: wu-sheng's avatar wu-sheng

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

上级 c172f34c
......@@ -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());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册