/external/opencensus-java/api/src/main/java/io/opencensus/trace/ |
D | SpanContext.java | 35 private final SpanId spanId; field in SpanContext 57 public static SpanContext create(TraceId traceId, SpanId spanId, TraceOptions traceOptions) { in create() argument 58 return create(traceId, spanId, traceOptions, TRACESTATE_DEFAULT); in create() 72 TraceId traceId, SpanId spanId, TraceOptions traceOptions, Tracestate tracestate) { in create() argument 73 return new SpanContext(traceId, spanId, traceOptions, tracestate); in create() 93 return spanId; in getSpanId() 123 return traceId.isValid() && spanId.isValid(); in isValid() 138 && spanId.equals(that.spanId) in equals() 144 return Arrays.hashCode(new Object[] {traceId, spanId, traceOptions}); in hashCode() 152 + spanId in toString() [all …]
|
D | Sampler.java | 47 SpanId spanId, in shouldSample() argument
|
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/ |
D | SpanBuilderImpl.java | 72 SpanId spanId = SpanId.generateRandomId(random); in startSpanInternal() local 95 spanId, in startSpanInternal() 102 SpanContext.create(traceId, spanId, traceOptions, tracestate), in startSpanInternal() 112 SpanContext.create(traceId, spanId, traceOptions, tracestate)); in startSpanInternal() 124 SpanId spanId, in makeSamplingDecision() argument 128 return sampler.shouldSample(parent, hasRemoteParent, traceId, spanId, name, parentLinks); in makeSamplingDecision() 135 .shouldSample(parent, hasRemoteParent, traceId, spanId, name, parentLinks); in makeSamplingDecision()
|
/external/opencensus-java/contrib/http_util/src/test/java/io/opencensus/contrib/http/util/ |
D | CloudTraceFormatTest.java | 93 private static String constructHeader(String traceId, String spanId) { in constructHeader() argument 94 return traceId + SPAN_ID_DELIMITER + spanId; in constructHeader() 97 private static String constructHeader(String traceId, String spanId, String traceOptions) { in constructHeader() argument 98 return traceId + SPAN_ID_DELIMITER + spanId + TRACE_OPTION_DELIMITER + traceOptions; in constructHeader() 287 final String spanId = "1"; in parseWithShortSpanIdAndSamplingShouldSucceed() local 289 buffer.putLong(Long.parseLong(spanId)); in parseWithShortSpanIdAndSamplingShouldSucceed() 292 constructHeader(TRACE_ID_BASE16, spanId, SAMPLED), in parseWithShortSpanIdAndSamplingShouldSucceed()
|
/external/opencensus-java/contrib/http_util/src/main/java/io/opencensus/contrib/http/util/ |
D | CloudTraceFormat.java | 122 SpanId spanId = longToSpanId(UnsignedLongs.parseUnsignedLong(spanIdStr.toString(), 10)); in extract() local 130 return SpanContext.create(traceId, spanId, traceOptions, TRACESTATE_DEFAULT); in extract() 144 private static long spanIdToLong(SpanId spanId) { in spanIdToLong() argument 146 buffer.put(spanId.getBytes()); in spanIdToLong()
|
/external/opencensus-java/api/src/test/java/io/opencensus/trace/samplers/ |
D | SamplersTest.java | 45 private final SpanId spanId = SpanId.generateRandomId(random); field in SamplersTest 62 spanId, in alwaysSampleSampler_AlwaysReturnTrue() 73 spanId, in alwaysSampleSampler_AlwaysReturnTrue() 93 spanId, in neverSampleSampler_AlwaysReturnFalse() 104 spanId, in neverSampleSampler_AlwaysReturnFalse()
|
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/propagation/ |
D | BinaryFormatImpl.java | 120 SpanId spanId; in fromByteArray() local 131 spanId = SpanId.fromBytes(bytes, pos + ID_SIZE); in fromByteArray() 146 return SpanContext.create(traceId, spanId, traceOptions, TRACESTATE_DEFAULT); in fromByteArray()
|
D | B3Format.java | 96 SpanId spanId; in extract() local 99 spanId = SpanId.fromLowerBase16(spanIdStr); in extract() 108 return SpanContext.create(traceId, spanId, traceOptions, TRACESTATE_DEFAULT); in extract()
|
/external/opencensus-java/contrib/spring_sleuth_v1x/src/test/java/io/opencensus/contrib/spring/sleuth/v1x/ |
D | OpenCensusSleuthSpanTest.java | 36 .spanId(23L) in testFromSleuthSampled() 49 .spanId(23L) in testFromSleuthNotSampled()
|
D | OpenCensusSleuthSpanContextHolderTest.java | 135 .spanId(sid) in createSleuthSpan()
|
/external/opencensus-java/contrib/spring_sleuth_v1x/src/main/java/io/opencensus/contrib/spring/sleuth/v1x/ |
D | OpenCensusSleuthTracer.java | 122 .spanId(id) in createSpan() 207 .spanId(id) in createChild() 222 .spanId(id) in createChild() 240 .spanId(span.getSpanId()) in sampledSpan()
|
/external/opencensus-java/api/src/main/java/io/opencensus/trace/samplers/ |
D | NeverSampleSampler.java | 40 SpanId spanId, in shouldSample() argument
|
D | AlwaysSampleSampler.java | 40 SpanId spanId, in shouldSample() argument
|
D | ProbabilitySampler.java | 78 SpanId spanId, in shouldSample() argument
|
/external/opencensus-java/exporters/trace/jaeger/src/main/java/io/opencensus/exporter/trace/jaeger/ |
D | JaegerExporterHandler.java | 238 private long spanIdToLong(final @Nullable SpanId spanId) { in spanIdToLong() argument 239 if (spanId == null) { in spanIdToLong() 243 spanId.copyBytesTo(spanIdBuffer, 0); in spanIdToLong()
|
/external/opencensus-java/exporters/trace/ocagent/src/test/java/io/opencensus/exporter/trace/ocagent/ |
D | TraceProtoUtilsTest.java | 105 private static final SpanId spanId = SpanId.fromLowerBase16(SPAN_ID); field in TraceProtoUtilsTest 109 SpanContext.create(traceId, spanId, traceOptions, multiValueTracestate); 221 .setSpanId(toByteString(spanId.getBytes())) in toSpanProto() 246 assertThat(span.getSpanId()).isEqualTo(toByteString(spanId.getBytes())); in toSpanProto()
|
/external/opencensus-java/exporters/trace/instana/src/main/java/io/opencensus/exporter/trace/instana/ |
D | InstanaExporterHandler.java | 80 private static String encodeSpanId(SpanId spanId) { in encodeSpanId() argument 81 return BaseEncoding.base16().lowerCase().encode(spanId.getBytes()); in encodeSpanId()
|
/external/opencensus-java/exporters/trace/jaeger/src/test/java/io/opencensus/exporter/trace/jaeger/ |
D | JaegerExporterHandlerTest.java | 93 assertThat(span.spanId).isEqualTo(256L); in exportShouldConvertFromSpanDataToJaegerThriftSpan() 126 assertThat(reference.spanId).isEqualTo(512L); in exportShouldConvertFromSpanDataToJaegerThriftSpan()
|
/external/opencensus-java/exporters/trace/ocagent/src/main/java/io/opencensus/exporter/trace/ocagent/ |
D | TraceProtoUtils.java | 110 SpanId spanId = spanContext.getSpanId(); in toSpanProto() local 114 .setSpanId(toByteString(spanId.getBytes())) in toSpanProto()
|
/external/opencensus-java/exporters/trace/stackdriver/src/test/java/io/opencensus/exporter/trace/stackdriver/ |
D | StackdriverV2ExporterHandlerProtoTest.java | 104 private static final SpanId spanId = SpanId.fromLowerBase16(SPAN_ID); field in StackdriverV2ExporterHandlerProtoTest 107 private static final SpanContext spanContext = SpanContext.create(traceId, spanId, traceOptions);
|