/external/opencensus-java/api/src/main/java/io/opencensus/trace/ |
SpanContext.java | 25 * child {@link Span}s and across process boundaries. It contains the identifiers (a {@link TraceId 34 private final TraceId traceId; 45 new SpanContext(TraceId.INVALID, SpanId.INVALID, TraceOptions.DEFAULT, TRACESTATE_DEFAULT); 50 * @param traceId the trace identifier of the span context. 54 * @deprecated use {@link #create(TraceId, SpanId, TraceOptions, Tracestate)}. 57 public static SpanContext create(TraceId traceId, SpanId spanId, TraceOptions traceOptions) { 58 return create(traceId, spanId, traceOptions, TRACESTATE_DEFAULT); 64 * @param traceId the trace identifier of the span context [all...] |
Sampler.java | 35 * @param traceId the {@link TraceId} for the new {@code Span}. This will be identical to that in 46 TraceId traceId,
|
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/ |
SpanBuilderImpl.java | 32 import io.opencensus.trace.TraceId; 71 TraceId traceId; 78 traceId = TraceId.generateRandomId(random); 83 traceId = parent.getTraceId(); 94 traceId, 102 SpanContext.create(traceId, spanId, traceOptions, tracestate), 112 SpanContext.create(traceId, spanId, traceOptions, tracestate)); 123 TraceId traceId [all...] |
/external/opencensus-java/api/src/main/java/io/opencensus/trace/samplers/ |
ProbabilitySampler.java | 25 import io.opencensus.trace.TraceId; 31 * We assume the lower 64 bits of the traceId's are randomly distributed around the whole (long) 34 * probability range. Using the low bits of the traceId also ensures that systems that only use 64 77 TraceId traceId, 100 return Math.abs(traceId.getLowerLong()) < getIdUpperBound();
|
AlwaysSampleSampler.java | 23 import io.opencensus.trace.TraceId; 39 TraceId traceId,
|
NeverSampleSampler.java | 23 import io.opencensus.trace.TraceId; 39 TraceId traceId,
|
/external/opencensus-java/contrib/spring_sleuth_v1x/src/test/java/io/opencensus/contrib/spring/sleuth/v1x/ |
OpenCensusSleuthSpanTest.java | 35 .traceId(22L) 48 .traceId(22L)
|
OpenCensusSleuthSpanContextHolderTest.java | 134 .traceId(tidLo)
|
/external/opencensus-java/api/src/test/java/io/opencensus/trace/samplers/ |
SamplersTest.java | 26 import io.opencensus.trace.TraceId; 43 private final TraceId traceId = TraceId.generateRandomId(random); 47 SpanContext.create(traceId, parentSpanId, TraceOptions.builder().setIsSampled(true).build()); 49 SpanContext.create(traceId, parentSpanId, TraceOptions.DEFAULT); 61 traceId, 72 traceId, 92 traceId, 103 traceId, [all...] |
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/propagation/ |
B3Format.java | 24 import io.opencensus.trace.TraceId; 43 @VisibleForTesting static final String X_B3_TRACE_ID = "X-B3-TraceId"; 53 // Used as the upper TraceId.SIZE hex characters of the traceID. B3-propagation used to send 54 // TraceId.SIZE hex characters (8-bytes traceId) in the past. 85 TraceId traceId; 88 if (traceIdStr.length() == TraceId.SIZE) { 89 // This is an 8-byte traceID [all...] |
BinaryFormatImpl.java | 24 import io.opencensus.trace.TraceId; 44 * <li>TraceId: (field_id = 0, len = 16, default = "0000000000000000") - 81 @VisibleForTesting static final int SPAN_ID_FIELD_ID_OFFSET = TRACE_ID_OFFSET + TraceId.SIZE; 90 private static final int REQUIRED_FORMAT_LENGTH = 3 * ID_SIZE + TraceId.SIZE + SpanId.SIZE; 119 TraceId traceId; 124 traceId = TraceId.fromBytes(bytes, pos + ID_SIZE); 125 pos += ID_SIZE + TraceId.SIZE; 146 return SpanContext.create(traceId, spanId, traceOptions, TRACESTATE_DEFAULT) [all...] |
/external/opencensus-java/contrib/log_correlation/stackdriver/src/main/java/io/opencensus/contrib/logcorrelation/stackdriver/ |
OpenCensusTraceLoggingEnhancer.java | 25 import io.opencensus.trace.TraceId; 211 private static String formatTraceId(String tracePrefix, TraceId traceId) { 212 return tracePrefix + traceId.toLowerBase16();
|
/external/opencensus-java/contrib/http_util/src/main/java/io/opencensus/contrib/http/util/ |
CloudTraceFormat.java | 26 import io.opencensus.trace.TraceId; 75 static final int TRACE_ID_SIZE = 2 * TraceId.SIZE; 117 TraceId traceId = TraceId.fromLowerBase16(headerStr.subSequence(0, TRACE_ID_SIZE)); 130 return SpanContext.create(traceId, spanId, traceOptions, TRACESTATE_DEFAULT);
|
/external/opencensus-java/contrib/http_util/src/test/java/io/opencensus/contrib/http/util/ |
CloudTraceFormatTest.java | 29 import io.opencensus.trace.TraceId; 67 private static final TraceId TRACE_ID = TraceId.fromLowerBase16(TRACE_ID_BASE16); 93 private static String constructHeader(String traceId, String spanId) { 94 return traceId + SPAN_ID_DELIMITER + spanId; 97 private static String constructHeader(String traceId, String spanId, String traceOptions) { 98 return traceId + SPAN_ID_DELIMITER + spanId + TRACE_OPTION_DELIMITER + traceOptions;
|
/external/opencensus-java/contrib/spring_sleuth_v1x/src/main/java/io/opencensus/contrib/spring/sleuth/v1x/ |
OpenCensusSleuthTracer.java | 121 .traceId(id) 206 .traceId(id) 220 .traceId(parent.getTraceId()) 239 .traceId(span.getTraceId())
|
/external/opencensus-java/exporters/trace/zipkin/src/test/java/io/opencensus/exporter/trace/zipkin/ |
ZipkinExporterHandlerTest.java | 32 import io.opencensus.trace.TraceId; 73 TraceId.fromLowerBase16(TRACE_ID), 93 .traceId(TRACE_ID) 114 TraceId.fromLowerBase16(TRACE_ID), 134 .traceId(TRACE_ID) 155 TraceId.fromLowerBase16(TRACE_ID), 175 .traceId(TRACE_ID) 200 TraceId.fromLowerBase16(TRACE_ID), 220 .traceId(TRACE_ID)
|
/external/opencensus-java/exporters/trace/instana/src/main/java/io/opencensus/exporter/trace/instana/ |
InstanaExporterHandler.java | 34 import io.opencensus.trace.TraceId; 76 private static String encodeTraceId(TraceId traceId) { 77 return BaseEncoding.base16().lowerCase().encode(traceId.getBytes(), 0, 8); 146 sb.append("\"traceId\":\"").append(encodeTraceId(spanContext.getTraceId())).append("\",");
|
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/ |
SpanBuilderImplTest.java | 30 import io.opencensus.trace.TraceId; 205 TraceId.generateRandomId(randomHandler.current()), 336 // This traceId will not be sampled by the ProbabilitySampler because the first 8 bytes as long 338 TraceId traceId = 339 TraceId.fromBytes( 364 traceId, 370 assertThat(childSpan.getContext().getTraceId()).isEqualTo(traceId); 381 traceId, 387 assertThat(childSpan.getContext().getTraceId()).isEqualTo(traceId); [all...] |
/external/opencensus-java/exporters/trace/ocagent/src/test/java/io/opencensus/exporter/trace/ocagent/ |
TraceProtoUtilsTest.java | 44 import io.opencensus.trace.TraceId; 106 private static final TraceId traceId = TraceId.fromLowerBase16(TRACE_ID); 109 SpanContext.create(traceId, spanId, traceOptions, multiValueTracestate); 220 .setTraceId(toByteString(traceId.getBytes())) 245 assertThat(span.getTraceId()).isEqualTo(toByteString(traceId.getBytes()));
|
/external/opencensus-java/exporters/trace/jaeger/src/main/java/io/opencensus/exporter/trace/jaeger/ |
JaegerExporterHandler.java | 47 import io.opencensus.trace.TraceId; 137 private final byte[] traceIdBuffer = new byte[TraceId.SIZE]; 209 private void copyToBuffer(final TraceId traceId) { 210 // Attempt to minimise allocations, since TraceId#getBytes currently creates a defensive copy: 211 traceId.copyBytesTo(traceIdBuffer, 0);
|
/external/opencensus-java/exporters/trace/zipkin/src/main/java/io/opencensus/exporter/trace/zipkin/ |
ZipkinExporterHandler.java | 115 .traceId(context.getTraceId().toLowerBase16())
|
/external/opencensus-java/exporters/trace/ocagent/src/main/java/io/opencensus/exporter/trace/ocagent/ |
TraceProtoUtils.java | 48 import io.opencensus.trace.TraceId; 109 TraceId traceId = spanContext.getTraceId(); 113 .setTraceId(toByteString(traceId.getBytes()))
|
/external/opencensus-java/exporters/trace/stackdriver/src/test/java/io/opencensus/exporter/trace/stackdriver/ |
StackdriverV2ExporterHandlerProtoTest.java | 49 import io.opencensus.trace.TraceId; 105 private static final TraceId traceId = TraceId.fromLowerBase16(TRACE_ID); 107 private static final SpanContext spanContext = SpanContext.create(traceId, spanId, traceOptions);
|
/external/autotest/venv/lucifer/ |
handlers.py | 281 'HQE', spanId='0', traceId=hqe_trace_id(hqe.id))
|
/external/autotest/scheduler/ |
scheduler_models.py | 705 traceId=hqe_trace_id(self.id)) [all...] |