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


Java Span.setTag方法代码示例

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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