Home
last modified time | relevance | path

Searched refs:spanId (Results 1 – 20 of 20) sorted by relevance

/external/opencensus-java/api/src/main/java/io/opencensus/trace/
DSpanContext.java35 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 …]
DSampler.java47 SpanId spanId, in shouldSample() argument
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/
DSpanBuilderImpl.java72 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/
DCloudTraceFormatTest.java93 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/
DCloudTraceFormat.java122 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/
DSamplersTest.java45 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/
DBinaryFormatImpl.java120 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()
DB3Format.java96 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/
DOpenCensusSleuthSpanTest.java36 .spanId(23L) in testFromSleuthSampled()
49 .spanId(23L) in testFromSleuthNotSampled()
DOpenCensusSleuthSpanContextHolderTest.java135 .spanId(sid) in createSleuthSpan()
/external/opencensus-java/contrib/spring_sleuth_v1x/src/main/java/io/opencensus/contrib/spring/sleuth/v1x/
DOpenCensusSleuthTracer.java122 .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/
DNeverSampleSampler.java40 SpanId spanId, in shouldSample() argument
DAlwaysSampleSampler.java40 SpanId spanId, in shouldSample() argument
DProbabilitySampler.java78 SpanId spanId, in shouldSample() argument
/external/opencensus-java/exporters/trace/jaeger/src/main/java/io/opencensus/exporter/trace/jaeger/
DJaegerExporterHandler.java238 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/
DTraceProtoUtilsTest.java105 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/
DInstanaExporterHandler.java80 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/
DJaegerExporterHandlerTest.java93 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/
DTraceProtoUtils.java110 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/
DStackdriverV2ExporterHandlerProtoTest.java104 private static final SpanId spanId = SpanId.fromLowerBase16(SPAN_ID); field in StackdriverV2ExporterHandlerProtoTest
107 private static final SpanContext spanContext = SpanContext.create(traceId, spanId, traceOptions);