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

Reset some codes.

上级 d69500a4
package org.skywalking.apm.sniffer.mock.trace.tag;
import org.skywalking.apm.trace.Span;
import org.skywalking.apm.trace.tag.BooleanTag;
/**
* Test case util for getting the {@link Boolean} type of the tag value.
*
* @author wusheng
*/
public class BooleanTagGetter {
public static Boolean get(Span span, BooleanTag tag) {
return span.getBoolTag(tag.key());
}
}
package org.skywalking.apm.sniffer.mock.trace.tag;
import org.skywalking.apm.trace.Span;
import org.skywalking.apm.trace.tag.IntTag;
/**
* Test case util for getting the {@link Integer} type of the tag value.
*
* @author wusheng
*/
public class IntTagGetter {
public static Integer get(Span span, IntTag tag) {
return span.getIntTag(tag.key());
}
}
package org.skywalking.apm.sniffer.mock.trace.tag;
import org.skywalking.apm.trace.Span;
import org.skywalking.apm.trace.tag.StringTag;
/**
* Test case util for getting the {@link String} type of the tag value.
*
* @author wusheng
*/
public class StringTagGetter {
public static String get(Span span, StringTag tag) {
return span.getStrTag(tag.key());
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册