本文整理汇总了Java中io.opentracing.Span.setTag方法的典型用法代码示例。如果您正苦于以下问题:Java Span.setTag方法的具体用法?Java Span.setTag怎么用?Java Span.setTag使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类io.opentracing.Span
的用法示例。
在下文中一共展示了Span.setTag方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: zaddincr
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public Double zaddincr(K key, ZAddArgs zAddArgs, double score, V member) {
Span span = helper.buildSpan("zaddincr", key);
span.setTag("score", score);
try {
return commands.zaddincr(key, zAddArgs, score, member);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例2: zrevrangeByScore
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public Set<byte[]> zrevrangeByScore(byte[] key, byte[] max, byte[] min) {
Span span = helper.buildSpan("zrevrangeByScore", key);
span.setTag("max", Arrays.toString(max));
span.setTag("min", Arrays.toString(min));
try {
return super.zrevrangeByScore(key, max, min);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例3: zrangebyscoreWithScores
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
@Deprecated
public RedisFuture<Long> zrangebyscoreWithScores(
ScoredValueStreamingChannel<V> channel, K key, double min, double max,
long offset, long count) {
Span span = helper.buildSpan("zrangebyscoreWithScores", key);
span.setTag("min", min);
span.setTag("max", max);
span.setTag("offset", offset);
span.setTag("count", count);
return setCompleteAction(
commands.zrangebyscoreWithScores(channel, key, min, max, offset, count), span);
}
示例4: setbit
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public Boolean setbit(byte[] key, long offset, byte[] value) {
Span span = helper.buildSpan("setbit", key);
span.setTag("offset", offset);
span.setTag("value", Arrays.toString(value));
try {
return super.setbit(key, offset, value);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例5: zcount
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public RedisFuture<Long> zcount(K key,
Range<? extends Number> range) {
Span span = helper.buildSpan("zcount", key);
span.setTag("range", nullable(range));
return setCompleteAction(commands.zcount(key, range), span);
}
示例6: publish
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public Long publish(byte[] channel, byte[] message) {
Span span = helper.buildSpan("publish");
span.setTag("channel", Arrays.toString(channel));
span.setTag("message", Arrays.toString(message));
try {
return super.publish(channel, message);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例7: sscan
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public ScanResult<String> sscan(String key, String cursor, ScanParams params) {
Span span = helper.buildSpan("sscan", key);
span.setTag("cursor", cursor);
span.setTag("params", TracingHelper.toString(params.getParams()));
try {
return super.sscan(key, cursor, params);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例8: scriptExists
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public Boolean scriptExists(String sha1) {
Span span = helper.buildSpan("scriptExists");
span.setTag("sha1", sha1);
try {
return super.scriptExists(sha1);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例9: hscan
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public ScanResult<Entry<byte[], byte[]>> hscan(byte[] key, byte[] cursor, ScanParams params) {
Span span = helper.buildSpan("hscan", key);
span.setTag("cursor", Arrays.toString(cursor));
span.setTag("params", TracingHelper.toString(params.getParams()));
try {
return super.hscan(key, cursor, params);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例10: blpop
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public List<String> blpop(String... args) {
Span span = helper.buildSpan("blpop");
span.setTag("args", Arrays.toString(args));
try {
return super.blpop(args);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例11: pfcount
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public Long pfcount(byte[]... keys) {
Span span = helper.buildSpan("pfcount");
span.setTag("keys", TracingHelper.toString(keys));
try {
return super.pfcount(keys);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例12: incrBy
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public Long incrBy(byte[] key, long integer) {
Span span = helper.buildSpan("incrBy", key);
span.setTag("integer", integer);
try {
return super.incrBy(key, integer);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例13: select
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public String select(int db) {
Span span = helper.buildSpan("select");
span.setTag("db", db);
try {
return commands.select(db);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例14: eval
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public Object eval(byte[] script, int keyCount, byte[]... params) {
Span span = helper.buildSpan("eval");
span.setTag("script", Arrays.toString(script));
span.setTag("keyCount", keyCount);
span.setTag("params", TracingHelper.toString(params));
try {
return super.eval(script, keyCount, params);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例15: shutdown
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public void shutdown(boolean save) {
Span span = helper.buildSpan("save");
span.setTag("save", save);
try {
commands.shutdown(save);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}