/external/opencensus-java/impl_core/src/jmh/java/io/opencensus/implcore/trace/propagation/ |
BinaryFormatImplBenchmark.java | 19 import io.opencensus.trace.SpanContext; 42 private SpanContext spanContext; 49 spanContext = 50 SpanContext.create( 55 spanContextBinary = binaryFormat.toByteArray(spanContext); 61 * BinaryFormat#toBinaryValue(SpanContext)}. 67 return data.binaryFormat.toByteArray(data.spanContext); 76 public SpanContext fromBinarySpanContext(Data data) throws SpanContextParseException { 82 * BinaryFormat#toBinaryValue(SpanContext)} then {@link BinaryFormat#fromBinaryValue(byte[])} [all...] |
B3FormatImplBenchmark.java | 19 import io.opencensus.trace.SpanContext; 46 private SpanContext spanContext; 53 spanContext = 54 SpanContext.create( 60 textFormatBase.inject(spanContext, spanContextHeaders); 65 * This benchmark attempts to measure performance of {@link TextFormat#inject(SpanContext, Object, 73 data.textFormatBase.inject(data.spanContext, carrier); 83 public SpanContext extract(Data data) throws SpanContextParseException { 88 * This benchmark attempts to measure performance of {@link TextFormat#inject(SpanContext, Object [all...] |
/external/opencensus-java/api/src/test/java/io/opencensus/trace/ |
LinkTest.java | 36 private final SpanContext spanContext = 37 SpanContext.create( 49 Link link = Link.fromSpanContext(spanContext, Type.CHILD_LINKED_SPAN); 50 assertThat(link.getTraceId()).isEqualTo(spanContext.getTraceId()); 51 assertThat(link.getSpanId()).isEqualTo(spanContext.getSpanId()); 57 Link link = Link.fromSpanContext(spanContext, Type.CHILD_LINKED_SPAN, attributesMap); 58 assertThat(link.getTraceId()).isEqualTo(spanContext.getTraceId()); 59 assertThat(link.getSpanId()).isEqualTo(spanContext.getSpanId()); 66 Link link = Link.fromSpanContext(spanContext, Type.PARENT_LINKED_SPAN) [all...] |
SpanTest.java | 37 private SpanContext spanContext; 38 private SpanContext notSampledSpanContext; 44 spanContext = 45 SpanContext.create( 50 SpanContext.create( 64 new NoopSpan(spanContext, null); 69 new NoopSpan(spanContext, EnumSet.noneOf(Span.Options.class)); 80 Span span = new NoopSpan(spanContext, spanOptions); 81 assertThat(span.getContext()).isEqualTo(spanContext); [all...] |
/external/opencensus-java/contrib/appengine_standard_util/src/test/java/io/opencensus/contrib/appengine/standard/util/ |
AppEngineCloudTraceContextUtilsTest.java | 23 import io.opencensus.trace.SpanContext; 65 SpanContext spanContext = 68 assertThat(spanContext) 70 SpanContext.create( 77 AppEngineCloudTraceContextUtils.toCloudTraceContext(spanContext); 113 SpanContext spanContext = 116 assertThat(spanContext) 118 SpanContext.create [all...] |
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/ |
NoRecordEventsSpanImplTest.java | 28 import io.opencensus.trace.SpanContext; 45 private final SpanContext spanContext = 46 SpanContext.create( 52 NoRecordEventsSpanImpl.create(spanContext); 56 assertThat(noRecordEventsSpan.getContext()).isEqualTo(spanContext); 86 Link.fromSpanContext(SpanContext.INVALID, Link.Type.CHILD_LINKED_SPAN));
|
RecordEventsSpanImplTest.java | 32 import io.opencensus.trace.SpanContext; 58 private final SpanContext spanContext = 59 SpanContext.create( 88 spanContext, 108 span.addLink(Link.fromSpanContext(spanContext, Link.Type.CHILD_LINKED_SPAN)); 123 spanContext, 142 spanContext, 165 Link link = Link.fromSpanContext(spanContext, Link.Type.CHILD_LINKED_SPAN); 168 assertThat(spanData.getContext()).isEqualTo(spanContext); [all...] |
SpanBuilderImplTest.java | 28 import io.opencensus.trace.SpanContext; 191 SPAN_NAME, SpanContext.INVALID, spanBuilderOptions) 203 SpanContext spanContext = 204 SpanContext.create( 210 SpanBuilderImpl.createWithRemoteParent(SPAN_NAME, spanContext, spanBuilderOptions) 214 assertThat(span.getContext().getTraceId()).isEqualTo(spanContext.getTraceId()); 217 assertThat(spanData.getParentSpanId()).isEqualTo(spanContext.getSpanId()); 363 SpanContext.create( 380 SpanContext.create [all...] |
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/export/ |
NoopRunningSpanStoreImplTest.java | 28 import io.opencensus.trace.SpanContext; 50 private final SpanContext spanContext = 51 SpanContext.create( 68 spanContext,
|
NoopSampledSpanStoreImplTest.java | 28 import io.opencensus.trace.SpanContext; 55 private final SpanContext spanContext = 56 SpanContext.create( 101 spanContext,
|
InProcessRunningSpanStoreImplTest.java | 27 import io.opencensus.trace.SpanContext; 54 final SpanContext spanContext = 55 SpanContext.create( 60 spanContext,
|
/external/opencensus-java/contrib/log_correlation/log4j2/src/test/java/io/opencensus/contrib/logcorrelation/log4j2/ |
OpenCensusTraceContextDataInjectorTest.java | 24 import io.opencensus.trace.SpanContext; 155 SpanContext spanContext = 156 SpanContext.create( 161 Scope scope = tracer.withSpan(new TestSpan(spanContext)); 188 SpanContext spanContext = 189 SpanContext.create( 194 Scope scope = tracer.withSpan(new TestSpan(spanContext));
|
/external/opencensus-java/contrib/spring_sleuth_v1x/src/main/java/io/opencensus/contrib/spring/sleuth/v1x/ |
OpenCensusSleuthSpanContextHolder.java | 35 private static final ThreadLocal</*@Nullable*/ SpanContext> CURRENT_SPAN = 36 new NamedThreadLocal</*@Nullable*/ SpanContext>("Trace Context"); 41 SpanContext currentSpanContext = CURRENT_SPAN.get(); 61 private static SpanContext removeCurrentSpanInternal( 62 @javax.annotation.Nullable SpanContext toRestore) { 83 SpanContext current = CURRENT_SPAN.get(); 107 setSpanContextInternal(new SpanContext(span, autoClose)); 121 private static void setSpanContextInternal(SpanContext spanContext) { 122 CURRENT_SPAN.set(spanContext); [all...] |
/external/opencensus-java/api/src/test/java/io/opencensus/trace/export/ |
SpanDataTest.java | 30 import io.opencensus.trace.SpanContext; 72 private final SpanContext spanContext = 73 SpanContext.create( 105 linksList.add(Link.fromSpanContext(spanContext, Type.CHILD_LINKED_SPAN)); 113 spanContext, 126 assertThat(spanData.getContext()).isEqualTo(spanContext); 146 spanContext, 159 assertThat(spanData.getContext()).isEqualTo(spanContext); 178 spanContext, [all...] |
/external/opencensus-java/contrib/log_correlation/log4j2/src/main/java/io/opencensus/contrib/logcorrelation/log4j2/ |
ContextDataUtils.java | 21 import io.opencensus.trace.SpanContext; 68 SpanContext spanContext = shouldAddTracingDataToLogEvent(spanSelection); 69 return spanContext == null 71 : getShareableContextAndTracingData(spanContext); 75 SpanContext spanContext = shouldAddTracingDataToLogEvent(spanSelection); 76 return spanContext == null 78 : getShareableContextAndTracingData(spanContext); 84 private static SpanContext shouldAddTracingDataToLogEvent(SpanSelection spanSelection) [all...] |
/external/opencensus-java/exporters/trace/instana/src/main/java/io/opencensus/exporter/trace/instana/ |
InstanaExporterHandler.java | 31 import io.opencensus.trace.SpanContext; 133 final SpanContext spanContext = span.getContext(); 145 sb.append("\"spanId\":\"").append(encodeSpanId(spanContext.getSpanId())).append("\","); 146 sb.append("\"traceId\":\"").append(encodeTraceId(spanContext.getTraceId())).append("\",");
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/propagation/ |
B3FormatTest.java | 26 import io.opencensus.trace.SpanContext; 75 b3Format.inject(SpanContext.create(TRACE_ID, SPAN_ID, TRACE_OPTIONS), carrier, setter); 84 b3Format.inject(SpanContext.create(TRACE_ID, SPAN_ID, TraceOptions.DEFAULT), carrier, setter); 94 SpanContext spanContext = SpanContext.create(TRACE_ID, SPAN_ID, TraceOptions.DEFAULT); 95 assertThat(b3Format.extract(headersNotSampled, getter)).isEqualTo(spanContext); 105 .isEqualTo(SpanContext.create(TRACE_ID, SPAN_ID, TRACE_OPTIONS)); 115 .isEqualTo(SpanContext.create(TRACE_ID, SPAN_ID, TraceOptions.DEFAULT)); 125 .isEqualTo(SpanContext.create(TRACE_ID, SPAN_ID, TRACE_OPTIONS)) [all...] |
/external/opencensus-java/exporters/trace/ocagent/src/main/java/io/opencensus/exporter/trace/ocagent/ |
TraceProtoUtils.java | 46 import io.opencensus.trace.SpanContext; 108 SpanContext spanContext = spanData.getContext(); 109 TraceId traceId = spanContext.getTraceId(); 110 SpanId spanId = spanContext.getSpanId(); 115 .setTracestate(toTracestateProto(spanContext.getTracestate()))
|
/external/opencensus-java/exporters/trace/ocagent/src/test/java/io/opencensus/exporter/trace/ocagent/ |
TraceProtoUtilsTest.java | 41 import io.opencensus.trace.SpanContext; 108 private static final SpanContext spanContext = 109 SpanContext.create(traceId, spanId, traceOptions, multiValueTracestate); 120 ImmutableList.of(Link.fromSpanContext(spanContext, Link.Type.CHILD_LINKED_SPAN)); 149 spanContext,
|
/external/opencensus-java/exporters/trace/stackdriver/src/test/java/io/opencensus/exporter/trace/stackdriver/ |
StackdriverV2ExporterHandlerProtoTest.java | 46 import io.opencensus.trace.SpanContext; 107 private static final SpanContext spanContext = SpanContext.create(traceId, spanId, traceOptions); 118 ImmutableList.of(Link.fromSpanContext(spanContext, Link.Type.CHILD_LINKED_SPAN)); 190 spanContext, 343 spanContext, 380 spanContext, 410 spanContext, 431 spanContext, [all...] |
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/ |
TracezZPageHandler.java | 30 import io.opencensus.trace.SpanContext; 318 SpanContext spanContext = span.getContext(); 330 spanContext.getTraceOptions().isSampled() 333 BaseEncoding.base16().lowerCase().encode(spanContext.getTraceId().getBytes()), 334 BaseEncoding.base16().lowerCase().encode(spanContext.getSpanId().getBytes()),
|
/external/grpc-grpc-java/interop-testing/src/main/java/io/grpc/testing/integration/ |
AbstractInteropTest.java | 101 import io.opencensus.trace.SpanContext; [all...] |