本文整理汇总了Java中io.opentracing.Span.finish方法的典型用法代码示例。如果您正苦于以下问题:Java Span.finish方法的具体用法?Java Span.finish怎么用?Java Span.finish使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类io.opentracing.Span
的用法示例。
在下文中一共展示了Span.finish方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: zrevrangeByScoreWithScores
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public Set<Tuple> zrevrangeByScoreWithScores(String key, double max, double min, int offset,
int count) {
Span span = helper.buildSpan("zrevrangeByScoreWithScores", key);
span.setTag("min", min);
span.setTag("max", max);
span.setTag("offset", offset);
span.setTag("count", count);
try {
return super.zrevrangeByScoreWithScores(key, max, min, offset, count);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例2: georadius
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public List<GeoRadiusResponse> georadius(byte[] key, double longitude, double latitude,
double radius, GeoUnit unit) {
Span span = helper.buildSpan("georadius", key);
span.setTag("longitude", longitude);
span.setTag("latitude", latitude);
span.setTag("radius", radius);
span.setTag("unit", unit.name());
try {
return super.georadius(key, longitude, latitude, radius, unit);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例3: zrevrangeByScore
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public Set<byte[]> zrevrangeByScore(byte[] key, double max, double min, int offset, int count) {
Span span = helper.buildSpan("zrevrangeByScore", key);
span.setTag("min", min);
span.setTag("max", max);
span.setTag("offset", offset);
span.setTag("count", count);
try {
return super.zrevrangeByScore(key, max, min, offset, count);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例4: zrevrangeByScore
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public Set<String> zrevrangeByScore(String key, double max, double min, int offset, int count) {
Span span = helper.buildSpan("zrevrangeByScore", key);
span.setTag("min", min);
span.setTag("max", max);
span.setTag("offset", offset);
span.setTag("count", count);
try {
return super.zrevrangeByScore(key, max, min, offset, count);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例5: pubsubChannels
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public List<K> pubsubChannels() {
Span span = helper.buildSpan("pubsubChannels");
try {
return commands.pubsubChannels();
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例6: zrangebyscore
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public Long zrangebyscore(ValueStreamingChannel<V> channel, K key,
Range<? extends Number> range) {
Span span = helper.buildSpan("zrangebyscore", key);
span.setTag("range", range == null ? "null" : range.toString());
try {
return commands.zrangebyscore(channel, key, range);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例7: restore
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public String restore(String key, int ttl, byte[] serializedValue) {
Span span = helper.buildSpan("restore", key);
span.setTag("ttl", ttl);
span.setTag("serializedValue", Arrays.toString(serializedValue));
try {
return super.restore(key, ttl, serializedValue);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例8: sentinelMasters
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public List<Map<String, String>> sentinelMasters() {
Span span = helper.buildSpan("sentinelMasters");
try {
return super.sentinelMasters();
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例9: eval
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public <T> T eval(String script, ScriptOutputType type, K[] keys, V... values) {
Span span = helper.buildSpan("eval", keys);
try {
return commands.eval(script, type, keys, values);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例10: evalsha
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public Object evalsha(byte[] sha1) {
Span span = helper.buildSpan("evalsha");
span.setTag("sha1", Arrays.toString(sha1));
try {
return super.evalsha(sha1);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例11: 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();
}
}
示例12: pfadd
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public Long pfadd(String key, String... elements) {
Span span = helper.buildSpan("pfadd");
span.setTag("elements", Arrays.toString(elements));
try {
return super.pfadd(key, elements);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例13: renamenx
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public Boolean renamenx(K key, K newKey) {
Span span = helper.buildSpan("renamenx", key);
span.setTag("newKey", nullable(newKey));
try {
return commands.renamenx(key, newKey);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例14: echo
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public String echo(String string) {
Span span = helper.buildSpan("echo");
span.setTag("string", string);
try {
return super.echo(string);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}
示例15: debugCrashAndRecover
import io.opentracing.Span; //导入方法依赖的package包/类
@Override
public String debugCrashAndRecover(Long delay) {
Span span = helper.buildSpan("debugCrashAndRecover");
span.setTag("delay", nullable(delay));
try {
return commands.debugCrashAndRecover(delay);
} catch (Exception e) {
onError(e, span);
throw e;
} finally {
span.finish();
}
}