当前位置: 首页>>代码示例>>Java>>正文


Java Span.finish方法代码示例

本文整理汇总了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();
  }
}
 
开发者ID:opentracing-contrib,项目名称:java-redis-client,代码行数:18,代码来源:TracingJedisCluster.java

示例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();
  }
}
 
开发者ID:opentracing-contrib,项目名称:java-redis-client,代码行数:18,代码来源:TracingJedisCluster.java

示例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();
  }
}
 
开发者ID:opentracing-contrib,项目名称:java-redis-client,代码行数:17,代码来源:TracingJedisCluster.java

示例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();
  }
}
 
开发者ID:opentracing-contrib,项目名称:java-redis-client,代码行数:17,代码来源:TracingJedis.java

示例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();
  }
}
 
开发者ID:opentracing-contrib,项目名称:java-redis-client,代码行数:13,代码来源:TracingRedisCommands.java

示例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();
  }
}
 
开发者ID:opentracing-contrib,项目名称:java-redis-client,代码行数:15,代码来源:TracingRedisCommands.java

示例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();
  }
}
 
开发者ID:opentracing-contrib,项目名称:java-redis-client,代码行数:15,代码来源:TracingJedis.java

示例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();
  }
}
 
开发者ID:opentracing-contrib,项目名称:java-redis-client,代码行数:13,代码来源:TracingJedis.java

示例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();
  }
}
 
开发者ID:opentracing-contrib,项目名称:java-redis-client,代码行数:13,代码来源:TracingRedisCommands.java

示例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();
  }
}
 
开发者ID:opentracing-contrib,项目名称:java-redis-client,代码行数:14,代码来源:TracingJedis.java

示例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();
  }
}
 
开发者ID:opentracing-contrib,项目名称:java-redis-client,代码行数:15,代码来源:TracingJedisCluster.java

示例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();
  }
}
 
开发者ID:opentracing-contrib,项目名称:java-redis-client,代码行数:14,代码来源:TracingJedisCluster.java

示例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();
  }
}
 
开发者ID:opentracing-contrib,项目名称:java-redis-client,代码行数:14,代码来源:TracingRedisCommands.java

示例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();
  }
}
 
开发者ID:opentracing-contrib,项目名称:java-redis-client,代码行数:14,代码来源:TracingJedisCluster.java

示例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();
  }
}
 
开发者ID:opentracing-contrib,项目名称:java-redis-client,代码行数:14,代码来源:TracingRedisCommands.java


注:本文中的io.opentracing.Span.finish方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。