Home
last modified time | relevance | path

Searched refs:getTraceId (Results 1 – 25 of 26) sorted by relevance

12

/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DLinkTest.java50 assertThat(link.getTraceId()).isEqualTo(spanContext.getTraceId()); in fromSpanContext_ChildLink()
58 assertThat(link.getTraceId()).isEqualTo(spanContext.getTraceId()); in fromSpanContext_ChildLink_WithAttributes()
67 assertThat(link.getTraceId()).isEqualTo(spanContext.getTraceId()); in fromSpanContext_ParentLink()
75 assertThat(link.getTraceId()).isEqualTo(spanContext.getTraceId()); in fromSpanContext_ParentLink_WithAttributes()
102 assertThat(link.toString()).contains(spanContext.getTraceId().toString()); in link_ToString()
107 assertThat(link.toString()).contains(spanContext.getTraceId().toString()); in link_ToString()
DSpanContextTest.java52 assertThat(SpanContext.INVALID.getTraceId()).isEqualTo(TraceId.INVALID); in invalidSpanContext()
75 public void getTraceId() { in getTraceId() method in SpanContextTest
76 assertThat(first.getTraceId()).isEqualTo(TraceId.fromBytes(firstTraceIdBytes)); in getTraceId()
77 assertThat(second.getTraceId()).isEqualTo(TraceId.fromBytes(secondTraceIdBytes)); in getTraceId()
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/
DSpanBuilderImplTest.java163 assertThat(childSpan.getContext().getTraceId()).isEqualTo(rootSpan.getContext().getTraceId()); in startChildSpan()
214 assertThat(span.getContext().getTraceId()).isEqualTo(spanContext.getTraceId()); in startRemoteSpan()
255 assertThat(childSpan.getContext().getTraceId()).isEqualTo(rootSpan.getContext().getTraceId()); in startRemoteChildSpan_WithSpecifiedSampler()
272 assertThat(childSpan.getContext().getTraceId()).isEqualTo(rootSpan.getContext().getTraceId()); in startRemoteChildSpan_WithoutSpecifiedSampler()
290 assertThat(childSpan.getContext().getTraceId()).isEqualTo(rootSpan.getContext().getTraceId()); in startChildSpan_WithSpecifiedSampler()
306 assertThat(childSpan.getContext().getTraceId()).isEqualTo(rootSpan.getContext().getTraceId()); in startChildSpan_WithoutSpecifiedSampler()
328 assertThat(childSpan.getContext().getTraceId()) in startChildSpan_SampledLinkedParent()
329 .isEqualTo(rootSpanUnsampled.getContext().getTraceId()); in startChildSpan_SampledLinkedParent()
370 assertThat(childSpan.getContext().getTraceId()).isEqualTo(traceId); in startRemoteChildSpan_WithProbabilitySamplerDefaultSampler()
387 assertThat(childSpan.getContext().getTraceId()).isEqualTo(traceId); in startRemoteChildSpan_WithProbabilitySamplerDefaultSampler()
/external/opencensus-java/api/src/main/java/io/opencensus/trace/
DLink.java70 return new AutoValue_Link(context.getTraceId(), context.getSpanId(), type, EMPTY_ATTRIBUTES); in fromSpanContext()
85 context.getTraceId(), in fromSpanContext()
97 public abstract TraceId getTraceId(); in getTraceId() method in Link
DSpanContext.java82 public TraceId getTraceId() { in getTraceId() method in SpanContext
/external/opencensus-java/contrib/appengine_standard_util/src/test/java/io/opencensus/contrib/appengine/standard/util/
DAppEngineCloudTraceContextUtilsTest.java78 assertThat(newCloudTraceContext.getTraceId()).isEqualTo(cloudTraceContext.getTraceId()); in toFromSampledCloudTraceContext()
157 return Arrays.equals(obj1.getTraceId(), obj2.getTraceId()) in cloudTraceContextEquals()
/external/opencensus-java/contrib/spring_sleuth_v1x/src/test/java/io/opencensus/contrib/spring/sleuth/v1x/
DOpenCensusSleuthSpanTest.java57 assertThat(Long.parseLong(span.getContext().getTraceId().toLowerBase16().substring(0, 16), 16)) in assertSpanEquals()
59 assertThat(Long.parseLong(span.getContext().getTraceId().toLowerBase16().substring(16, 32), 16)) in assertSpanEquals()
60 .isEqualTo(sleuthSpan.getTraceId()); in assertSpanEquals()
DOpenCensusSleuthSpanContextHolderTest.java142 assertThat(Long.parseLong(span.getContext().getTraceId().toLowerBase16().substring(0, 16), 16)) in assertSpanEquals()
144 assertThat(Long.parseLong(span.getContext().getTraceId().toLowerBase16().substring(16, 32), 16)) in assertSpanEquals()
145 .isEqualTo(sleuthSpan.getTraceId()); in assertSpanEquals()
/external/opencensus-java/contrib/appengine_standard_util/src/main/java/io/opencensus/contrib/appengine/standard/util/
DAppEngineCloudTraceContextUtils.java59 TraceIdProto traceIdProto = TraceIdProto.parseFrom(cloudTraceContext.getTraceId()); in fromCloudTraceContext()
86 ByteBuffer traceIdBuf = ByteBuffer.wrap(spanContext.getTraceId().getBytes()); in toCloudTraceContext()
/external/opencensus-java/contrib/exemplar_util/src/main/java/io/opencensus/contrib/exemplar/util/
DExemplarUtils.java66 measureMap.putAttachment(ATTACHMENT_KEY_TRACE_ID, spanContext.getTraceId().toLowerBase16()); in putSpanContextAttachments()
/external/opencensus-java/contrib/spring_sleuth_v1x/src/main/java/io/opencensus/contrib/spring/sleuth/v1x/
DOpenCensusSleuthSpan.java74 .putLong(span.getTraceId()) in fromSleuthSpan()
DOpenCensusSleuthTracer.java220 .traceId(parent.getTraceId()) in createChild()
239 .traceId(span.getTraceId()) in sampledSpan()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/propagation/
DBinaryFormatImpl.java100 spanContext.getTraceId().copyBytesTo(bytes, TRACE_ID_OFFSET); in toByteArray()
DB3Format.java72 setter.put(carrier, X_B3_TRACE_ID, spanContext.getTraceId().toLowerBase16()); in inject()
/external/opencensus-java/contrib/log_correlation/stackdriver/src/main/java/io/opencensus/contrib/logcorrelation/stackdriver/
DOpenCensusTraceLoggingEnhancer.java204 builder.setTrace(formatTraceId(tracePrefix, span.getTraceId())); in addTracingData()
/external/opencensus-java/exporters/trace/jaeger/src/main/java/io/opencensus/exporter/trace/jaeger/
DJaegerExporterHandler.java193 copyToBuffer(context.getTraceId()); in spanDataToJaegerThriftSpan()
257 copyToBuffer(link.getTraceId()); in linksToReferences()
/external/opencensus-java/contrib/http_util/src/main/java/io/opencensus/contrib/http/util/
DCloudTraceFormat.java96 .append(spanContext.getTraceId().toLowerBase16()) in inject()
/external/opencensus-java/exporters/trace/ocagent/src/main/java/io/opencensus/exporter/trace/ocagent/
DTraceProtoUtils.java109 TraceId traceId = spanContext.getTraceId(); in toSpanProto()
298 .setTraceId(toByteString(link.getTraceId().getBytes())) in toLinkProto()
/external/opencensus-java/contrib/log_correlation/log4j2/src/main/java/io/opencensus/contrib/logcorrelation/log4j2/
DContextDataUtils.java138 spanContext.getTraceId().toLowerBase16()); in getShareableContextAndTracingData()
/external/opencensus-java/exporters/trace/zipkin/src/main/java/io/opencensus/exporter/trace/zipkin/
DZipkinExporterHandler.java115 .traceId(context.getTraceId().toLowerBase16()) in generateSpan()
/external/opencensus-java/exporters/trace/instana/src/main/java/io/opencensus/exporter/trace/instana/
DInstanaExporterHandler.java146 sb.append("\"traceId\":\"").append(encodeTraceId(spanContext.getTraceId())).append("\","); in convertToJson()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/
DSpanBuilderImpl.java83 traceId = parent.getTraceId(); in startSpanInternal()
/external/opencensus-java/exporters/trace/stackdriver/src/main/java/io/opencensus/exporter/trace/stackdriver/
DStackdriverV2ExporterHandler.java181 .setTrace(context.getTraceId().toLowerBase16()) in generateSpan()
462 .setTraceId(link.getTraceId().toLowerBase16()) in toLinkProto()
/external/opencensus-java/exporters/trace/ocagent/src/test/java/io/opencensus/exporter/trace/ocagent/
DTraceProtoUtilsTest.java245 assertThat(span.getTraceId()).isEqualTo(toByteString(traceId.getBytes())); in toSpanProto()
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/
DTracezZPageHandler.java333 BaseEncoding.base16().lowerCase().encode(spanContext.getTraceId().getBytes()), in emitSingleSpan()

12