Home
last modified time | relevance | path

Searched refs:TraceId (Results 1 – 25 of 62) sorted by relevance

123

/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DTraceIdTest.java34 private static final TraceId first = TraceId.fromBytes(firstBytes);
35 private static final TraceId second = TraceId.fromBytes(secondBytes);
39 assertThat(TraceId.INVALID.getBytes()).isEqualTo(new byte[16]); in invalidTraceId()
44 assertThat(TraceId.INVALID.isValid()).isFalse(); in isValid()
57 assertThat(TraceId.fromLowerBase16("00000000000000000000000000000000")) in fromLowerBase16()
58 .isEqualTo(TraceId.INVALID); in fromLowerBase16()
59 assertThat(TraceId.fromLowerBase16("00000000000000000000000000000061")).isEqualTo(first); in fromLowerBase16()
60 assertThat(TraceId.fromLowerBase16("ff000000000000000000000000000041")).isEqualTo(second); in fromLowerBase16()
65 assertThat(TraceId.INVALID.toLowerBase16()).isEqualTo("00000000000000000000000000000000"); in toLowerBase16()
74 assertThat(first.compareTo(TraceId.fromBytes(firstBytes))).isEqualTo(0); in traceId_CompareTo()
[all …]
DSpanContextTest.java39 TraceId.fromBytes(firstTraceIdBytes),
45 TraceId.fromBytes(secondTraceIdBytes),
52 assertThat(SpanContext.INVALID.getTraceId()).isEqualTo(TraceId.INVALID); in invalidSpanContext()
62 TraceId.fromBytes(firstTraceIdBytes), SpanId.INVALID, TraceOptions.DEFAULT) in isValid()
67 TraceId.INVALID, SpanId.fromBytes(firstSpanIdBytes), TraceOptions.DEFAULT) in isValid()
76 assertThat(first.getTraceId()).isEqualTo(TraceId.fromBytes(firstTraceIdBytes)); in getTraceId()
77 assertThat(second.getTraceId()).isEqualTo(TraceId.fromBytes(secondTraceIdBytes)); in getTraceId()
105 TraceId.fromBytes(firstTraceIdBytes), in spanContext_EqualsAndHashCode()
109 TraceId.fromBytes(firstTraceIdBytes), in spanContext_EqualsAndHashCode()
116 TraceId.fromBytes(secondTraceIdBytes), in spanContext_EqualsAndHashCode()
[all …]
/external/opencensus-java/api/src/main/java/io/opencensus/trace/
DTraceId.java33 public final class TraceId implements Comparable<TraceId> { class
48 public static final TraceId INVALID = new TraceId(new byte[SIZE]);
53 private TraceId(byte[] bytes) { in TraceId() method in TraceId
72 public static TraceId fromBytes(byte[] buffer) { in fromBytes()
77 return new TraceId(bytesCopied); in fromBytes()
93 public static TraceId fromBytes(byte[] src, int srcOffset) { in fromBytes()
96 return new TraceId(bytes); in fromBytes()
109 public static TraceId fromLowerBase16(CharSequence src) { in fromLowerBase16()
112 return new TraceId(LowerCaseBase16Encoding.decodeToBytes(src)); in fromLowerBase16()
122 public static TraceId generateRandomId(Random random) { in generateRandomId()
[all …]
DSpanContext.java34 private final TraceId traceId;
45 new SpanContext(TraceId.INVALID, SpanId.INVALID, TraceOptions.DEFAULT, TRACESTATE_DEFAULT);
57 public static SpanContext create(TraceId traceId, SpanId spanId, TraceOptions traceOptions) { in create()
72 TraceId traceId, SpanId spanId, TraceOptions traceOptions, Tracestate tracestate) { in create()
82 public TraceId getTraceId() { in getTraceId()
159 TraceId traceId, SpanId spanId, TraceOptions traceOptions, Tracestate tracestate) { in SpanContext()
/external/openscreen/util/trace_logging/
Dscoped_trace_operations.h38 static TraceId current_id() { in current_id()
42 static TraceId root_id() { in root_id()
68 TraceId id,
79 ScopedTraceOperation(TraceId current_id = kUnsetTraceId,
80 TraceId parent_id = kUnsetTraceId,
81 TraceId root_id = kUnsetTraceId);
84 TraceId trace_id_;
85 TraceId parent_id_;
86 TraceId root_id_;
117 TraceId current = kUnsetTraceId,
[all …]
Dscoped_trace_operations.cc20 TraceId id, in TraceAsyncEnd()
31 ScopedTraceOperation::ScopedTraceOperation(TraceId trace_id, in ScopedTraceOperation()
32 TraceId parent_id, in ScopedTraceOperation()
33 TraceId root_id) { in ScopedTraceOperation()
82 uint64_t{0x01} << (sizeof(TraceId) * 8 - 1)};
88 TraceId current, in TraceLoggerBase()
89 TraceId parent, in TraceLoggerBase()
90 TraceId root) in TraceLoggerBase()
/external/openscreen/platform/base/
Dtrace_logging_types.h15 using TraceId = uint64_t; variable
19 constexpr TraceId kEmptyTraceId = 0x0;
23 constexpr TraceId kUnsetTraceId = std::numeric_limits<TraceId>::max();
28 TraceId current;
29 TraceId parent;
30 TraceId root;
/external/openscreen/util/
Dtrace_logging_unittest.cc24 constexpr TraceId kEmptyId = TraceId{0};
138 constexpr TraceId current = 0x32; in TEST()
139 constexpr TraceId parent = 0x47; in TEST()
140 constexpr TraceId root = 0x84; in TEST()
169 constexpr TraceId current = 0x32; in TEST()
170 constexpr TraceId parent = 0x47; in TEST()
171 constexpr TraceId root = 0x84; in TEST()
208 constexpr TraceId current = 0x32; in TEST()
209 constexpr TraceId parent = 0x47; in TEST()
210 constexpr TraceId root = 0x84; in TEST()
[all …]
/external/openscreen/platform/test/
Dtrace_logging_helpers.h53 TraceId,
81 template <TraceId Current,
82 TraceId Parent,
83 TraceId Root,
103 template <TraceId Current,
104 TraceId Parent,
105 TraceId Root,
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/propagation/
DBinaryFormatImpl.java24 import io.opencensus.trace.TraceId;
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; in fromByteArray()
124 traceId = TraceId.fromBytes(bytes, pos + ID_SIZE); in fromByteArray()
125 pos += ID_SIZE + TraceId.SIZE; in fromByteArray()
DB3Format.java24 import io.opencensus.trace.TraceId;
85 TraceId traceId; in extract()
88 if (traceIdStr.length() == TraceId.SIZE) { in extract()
92 traceId = TraceId.fromLowerBase16(traceIdStr); in extract()
/external/opencensus-java/api/src/test/java/io/opencensus/trace/samplers/
DSamplersTest.java26 import io.opencensus.trace.TraceId;
43 private final TraceId traceId = TraceId.generateRandomId(random);
134 TraceId.generateRandomId(random), in assertSamplerSamplesWithProbability()
209 TraceId notSampledtraceId = in probabilitySampler_SampleBasedOnTraceId()
210 TraceId.fromBytes( in probabilitySampler_SampleBasedOnTraceId()
240 TraceId sampledtraceId = in probabilitySampler_SampleBasedOnTraceId()
241 TraceId.fromBytes( in probabilitySampler_SampleBasedOnTraceId()
/external/opencensus-java/contrib/log_correlation/log4j2/src/test/java/io/opencensus/contrib/logcorrelation/log4j2/
DOpenCensusLog4jLogCorrelationAllSpansTest.java25 import io.opencensus.trace.TraceId;
54 TraceId.fromLowerBase16("b9718fe3d82d36fce0e6a1ada1c21db0"), in addSampledSpanToLogEntryWithAllSpans()
77 TraceId.fromLowerBase16("cd7061dfa9d312cdcc42edab3feab51b"), in addNonSampledSpanToLogEntryWithAllSpans()
119 TraceId.fromLowerBase16("c95329bb6b7de41afbc51a231c128f97"), in preserveOtherKeyValuePairs()
145 TraceId.fromLowerBase16("18e4ae44273a0c44e0c9ea4380792c66"), in overwriteExistingTracingKey()
DOpenCensusLog4jLogCorrelationNoSpansTest.java25 import io.opencensus.trace.TraceId;
53 TraceId.fromLowerBase16("03d2ada98f6eb8330605a45a88c7e67d"), in doNotAddSampledSpanToLogEntryWithNoSpans()
73 TraceId.fromLowerBase16("09664283d189791de5218ffe3be88d54"), in doNotAddNonSampledSpanToLogEntryWithNoSpans()
DOpenCensusLog4jLogCorrelationSampledSpansTest.java25 import io.opencensus.trace.TraceId;
53 TraceId.fromLowerBase16("0af7a7bef890695f1c5e85a8e7290164"), in addSampledSpanToLogEntryWithSampledSpans()
76 TraceId.fromLowerBase16("9e09b559ebb8f7f7ed7451aff68cf441"), in doNotAddNonSampledSpanToLogEntryWithSampledSpans()
/external/opencensus-java/contrib/log_correlation/stackdriver/src/test/java/io/opencensus/contrib/logcorrelation/stackdriver/
DOpenCensusTraceLoggingEnhancerTest.java35 import io.opencensus.trace.TraceId;
67 TraceId.fromLowerBase16("3da31be987098abb08c71c7700d2680e"), in enhanceLogEntry_DoNotAddSampledSpanToLogEntryWithNoSpans()
81 TraceId.fromLowerBase16("4c9874d0b41224cce77ff74ee10f5ee6"), in enhanceLogEntry_AddSampledSpanToLogEntryWithSampledSpans()
98 TraceId.fromLowerBase16("4c6af40c499951eb7de2777ba1e4fefa"), in enhanceLogEntry_AddSampledSpanToLogEntryWithAllSpans()
115 TraceId.fromLowerBase16("88ab22b18b97369df065ca830e41cf6a"), in enhanceLogEntry_DoNotAddNonSampledSpanToLogEntryWithNoSpans()
129 TraceId.fromLowerBase16("7f4703d9bb02f4f2e67fb840103cdd34"), in enhanceLogEntry_DoNotAddNonSampledSpanToLogEntryWithSampledSpans()
143 TraceId.fromLowerBase16("72c905c76f99e99974afd84dc053a480"), in enhanceLogEntry_AddNonSampledSpanToLogEntryWithAllSpans()
172 TraceId.fromLowerBase16("bfb4248a24325a905873a1d43001d9a0"), in enhanceLogEntry_ConvertNullProjectIdToEmptyString()
/external/opencensus-java/contrib/http_util/src/main/java/io/opencensus/contrib/http/util/
DCloudTraceFormat.java26 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)); in extract()
/external/opencensus-java/contrib/spring_sleuth_v1x/src/main/java/io/opencensus/contrib/spring/sleuth/v1x/
DOpenCensusSleuthSpan.java27 import io.opencensus.trace.TraceId;
71 TraceId.fromBytes( in fromSleuthSpan()
72 ByteBuffer.allocate(TraceId.SIZE) in fromSleuthSpan()
/external/opencensus-java/contrib/appengine_standard_util/src/main/java/io/opencensus/contrib/appengine/standard/util/
DAppEngineCloudTraceContextUtils.java25 import io.opencensus.trace.TraceId;
60 ByteBuffer traceIdBuf = ByteBuffer.allocate(TraceId.SIZE); in fromCloudTraceContext()
67 TraceId.fromBytes(traceIdBuf.array()), in fromCloudTraceContext()
/external/opencensus-java/exporters/trace/instana/src/test/java/io/opencensus/exporter/trace/instana/
DInstanaExporterHandlerTest.java33 import io.opencensus.trace.TraceId;
70 TraceId.fromLowerBase16(TRACE_ID), in generateSpan_NoKindAndRemoteParent()
108 TraceId.fromLowerBase16(TRACE_ID), in generateSpan_ServerKind()
146 TraceId.fromLowerBase16(TRACE_ID), in generateSpan_ClientKind()
/external/opencensus-java/contrib/appengine_standard_util/src/test/java/io/opencensus/contrib/appengine/standard/util/
DAppEngineCloudTraceContextUtilsTest.java25 import io.opencensus.trace.TraceId;
71 TraceId.fromLowerBase16("fae1c6346b9cf9a272cb6504b5a10dcc"), in toFromSampledCloudTraceContext()
119 TraceId.fromLowerBase16("fae1c6346b9cf9a272cb6504b5a10dcc"), in toFromNotSampledCloudTraceContext()
/external/opencensus-java/contrib/exemplar_util/src/test/java/io/opencensus/contrib/exemplar/util/
DExemplarUtilsTest.java29 import io.opencensus.trace.TraceId;
45 private static final TraceId TRACE_ID = TraceId.generateRandomId(RANDOM);
/external/opencensus-java/exporters/trace/zipkin/src/test/java/io/opencensus/exporter/trace/zipkin/
DZipkinExporterHandlerTest.java32 import io.opencensus.trace.TraceId;
73 TraceId.fromLowerBase16(TRACE_ID), in generateSpan_NoKindAndRemoteParent()
114 TraceId.fromLowerBase16(TRACE_ID), in generateSpan_ServerKind()
155 TraceId.fromLowerBase16(TRACE_ID), in generateSpan_ClientKind()
200 TraceId.fromLowerBase16(TRACE_ID), in generateSpan_WithAttributes()
/external/opencensus-java/api/src/main/java/io/opencensus/trace/samplers/
DNeverSampleSampler.java23 import io.opencensus.trace.TraceId;
39 TraceId traceId, in shouldSample()
DAlwaysSampleSampler.java23 import io.opencensus.trace.TraceId;
39 TraceId traceId, in shouldSample()

123