Home
last modified time | relevance | path

Searched refs:TraceOptions (Results 1 – 25 of 68) sorted by relevance

123

/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DTraceOptionsTest.java35 assertThat(TraceOptions.DEFAULT.getOptions()).isEqualTo(0); in getOptions()
36 assertThat(TraceOptions.builder().setIsSampled(false).build().getOptions()).isEqualTo(0); in getOptions()
37 assertThat(TraceOptions.builder().setIsSampled(true).build().getOptions()).isEqualTo(1); in getOptions()
38 assertThat(TraceOptions.builder().setIsSampled(true).setIsSampled(false).build().getOptions()) in getOptions()
40 assertThat(TraceOptions.fromByte(FIRST_BYTE).getOptions()).isEqualTo(-1); in getOptions()
41 assertThat(TraceOptions.fromByte(SECOND_BYTE).getOptions()).isEqualTo(1); in getOptions()
42 assertThat(TraceOptions.fromByte(THIRD_BYTE).getOptions()).isEqualTo(6); in getOptions()
47 assertThat(TraceOptions.DEFAULT.isSampled()).isFalse(); in isSampled()
48 assertThat(TraceOptions.builder().setIsSampled(true).build().isSampled()).isTrue(); in isSampled()
53 assertThat(TraceOptions.fromByte(FIRST_BYTE).getByte()).isEqualTo(FIRST_BYTE); in toFromByte()
[all …]
DSpanContextTest.java41 TraceOptions.DEFAULT,
47 TraceOptions.builder().setIsSampled(true).build(),
54 assertThat(SpanContext.INVALID.getTraceOptions()).isEqualTo(TraceOptions.DEFAULT); in invalidSpanContext()
62 TraceId.fromBytes(firstTraceIdBytes), SpanId.INVALID, TraceOptions.DEFAULT) in isValid()
67 TraceId.INVALID, SpanId.fromBytes(firstSpanIdBytes), TraceOptions.DEFAULT) in isValid()
88 assertThat(first.getTraceOptions()).isEqualTo(TraceOptions.DEFAULT); in getTraceOptions()
90 .isEqualTo(TraceOptions.builder().setIsSampled(true).build()); in getTraceOptions()
107 TraceOptions.DEFAULT), in spanContext_EqualsAndHashCode()
111 TraceOptions.builder().setIsSampled(false).build(), in spanContext_EqualsAndHashCode()
118 TraceOptions.builder().setIsSampled(true).build(), in spanContext_EqualsAndHashCode()
[all …]
/external/opencensus-java/api/src/main/java/io/opencensus/trace/
DTraceOptions.java33 public final class TraceOptions { class
51 public static final TraceOptions DEFAULT = fromByte(DEFAULT_OPTIONS);
57 private TraceOptions(byte options) { in TraceOptions() method in TraceOptions
78 public static TraceOptions fromBytes(byte[] buffer) { in fromBytes()
100 public static TraceOptions fromBytes(byte[] src, int srcOffset) { in fromBytes()
112 public static TraceOptions fromByte(byte src) { in fromByte()
114 return new TraceOptions(src); in fromByte()
180 public static Builder builder(TraceOptions traceOptions) { in builder()
201 if (!(obj instanceof TraceOptions)) { in equals()
205 TraceOptions that = (TraceOptions) obj; in equals()
[all …]
DSpanContext.java36 private final TraceOptions traceOptions;
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()
102 public TraceOptions getTraceOptions() { in getTraceOptions()
159 TraceId traceId, SpanId spanId, TraceOptions traceOptions, Tracestate tracestate) { in SpanContext()
/external/opencensus-java/contrib/spring_sleuth_v1x/src/main/java/io/opencensus/contrib/spring/sleuth/v1x/
DOpenCensusSleuthSpan.java28 import io.opencensus.trace.TraceOptions;
44 private static final TraceOptions sampledOptions =
45 TraceOptions.builder().setIsSampled(true).build();
46 private static final TraceOptions notSampledOptions =
47 TraceOptions.builder().setIsSampled(false).build();
/external/opencensus-java/contrib/http_util/src/main/java/io/opencensus/contrib/http/util/
DCloudTraceFormat.java27 import io.opencensus.trace.TraceOptions;
73 static final TraceOptions OPTIONS_SAMPLED = TraceOptions.builder().setIsSampled(true).build();
74 static final TraceOptions OPTIONS_NOT_SAMPLED = TraceOptions.DEFAULT;
123 TraceOptions traceOptions = OPTIONS_NOT_SAMPLED; in extract()
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/propagation/
DBinaryFormatImplTest.java25 import io.opencensus.trace.TraceOptions;
43 private static final TraceOptions TRACE_OPTIONS = TraceOptions.fromByte(TRACE_OPTIONS_BYTES);
66 SpanContext.create(TRACE_ID, SPAN_ID, TraceOptions.builder().setIsSampled(true).build())); in propagate_SpanContextTracingEnabled()
71 testSpanContextConversion(SpanContext.create(TRACE_ID, SPAN_ID, TraceOptions.DEFAULT)); in propagate_SpanContextNoTracing()
189 assertThat(extracted.getTraceOptions()).isEqualTo(TraceOptions.DEFAULT); in fromBinaryValue_MissingTraceOptionsOk()
DB3FormatTest.java29 import io.opencensus.trace.TraceOptions;
53 private static final TraceOptions TRACE_OPTIONS = TraceOptions.fromByte(TRACE_OPTIONS_BYTE);
84 b3Format.inject(SpanContext.create(TRACE_ID, SPAN_ID, TraceOptions.DEFAULT), carrier, setter); in serialize_NotSampledContext()
94 SpanContext spanContext = SpanContext.create(TRACE_ID, SPAN_ID, TraceOptions.DEFAULT); in parseMissingSampledAndMissingFlag()
115 .isEqualTo(SpanContext.create(TRACE_ID, SPAN_ID, TraceOptions.DEFAULT)); in parseZeroSampled()
135 .isEqualTo(SpanContext.create(TRACE_ID, SPAN_ID, TraceOptions.DEFAULT)); in parseZeroFlag()
154 .isEqualTo(SpanContext.create(TRACE_ID_EIGHT_BYTES, SPAN_ID, TraceOptions.DEFAULT)); in parseEightBytesTraceId_NotSampledSpanContext()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/propagation/
DBinaryFormatImpl.java25 import io.opencensus.trace.TraceOptions;
92 private static final int ALL_FORMAT_LENGTH = REQUIRED_FORMAT_LENGTH + ID_SIZE + TraceOptions.SIZE;
121 TraceOptions traceOptions = TraceOptions.DEFAULT; in fromByteArray()
144 traceOptions = TraceOptions.fromByte(bytes[pos + ID_SIZE]); in fromByteArray()
DB3Format.java25 import io.opencensus.trace.TraceOptions;
103 TraceOptions traceOptions = TraceOptions.DEFAULT; in extract()
106 traceOptions = TraceOptions.builder().setIsSampled(true).build(); in extract()
/external/opencensus-java/contrib/log_correlation/log4j2/src/test/java/io/opencensus/contrib/logcorrelation/log4j2/
DOpenCensusLog4jLogCorrelationAllSpansTest.java26 import io.opencensus.trace.TraceOptions;
56 TraceOptions.builder().setIsSampled(true).build(), in addSampledSpanToLogEntryWithAllSpans()
79 TraceOptions.builder().setIsSampled(false).build(), in addNonSampledSpanToLogEntryWithAllSpans()
121 TraceOptions.builder().setIsSampled(true).build(), in preserveOtherKeyValuePairs()
147 TraceOptions.builder().setIsSampled(true).build(), in overwriteExistingTracingKey()
DOpenCensusLog4jLogCorrelationNoSpansTest.java26 import io.opencensus.trace.TraceOptions;
55 TraceOptions.builder().setIsSampled(true).build(), in doNotAddSampledSpanToLogEntryWithNoSpans()
75 TraceOptions.builder().setIsSampled(false).build(), in doNotAddNonSampledSpanToLogEntryWithNoSpans()
DOpenCensusLog4jLogCorrelationSampledSpansTest.java26 import io.opencensus.trace.TraceOptions;
55 TraceOptions.builder().setIsSampled(true).build(), in addSampledSpanToLogEntryWithSampledSpans()
78 TraceOptions.builder().setIsSampled(false).build(), in doNotAddNonSampledSpanToLogEntryWithSampledSpans()
/external/opencensus-java/contrib/log_correlation/stackdriver/src/test/java/io/opencensus/contrib/logcorrelation/stackdriver/
DOpenCensusTraceLoggingEnhancerTest.java36 import io.opencensus.trace.TraceOptions;
69 TraceOptions.builder().setIsSampled(true).build(), in enhanceLogEntry_DoNotAddSampledSpanToLogEntryWithNoSpans()
83 TraceOptions.builder().setIsSampled(true).build(), in enhanceLogEntry_AddSampledSpanToLogEntryWithSampledSpans()
100 TraceOptions.builder().setIsSampled(true).build(), in enhanceLogEntry_AddSampledSpanToLogEntryWithAllSpans()
117 TraceOptions.builder().setIsSampled(false).build(), in enhanceLogEntry_DoNotAddNonSampledSpanToLogEntryWithNoSpans()
131 TraceOptions.builder().setIsSampled(false).build(), in enhanceLogEntry_DoNotAddNonSampledSpanToLogEntryWithSampledSpans()
145 TraceOptions.builder().setIsSampled(false).build(), in enhanceLogEntry_AddNonSampledSpanToLogEntryWithAllSpans()
174 TraceOptions.builder().setIsSampled(true).build(), in enhanceLogEntry_ConvertNullProjectIdToEmptyString()
/external/llvm-project/lldb/source/Plugins/Process/Linux/
DProcessorTrace.h83 const TraceOptions &config);
100 static Status GetCPUType(TraceOptions &config);
103 Create(lldb::pid_t pid, lldb::tid_t tid, const TraceOptions &config,
118 Status GetTraceConfig(TraceOptions &config) const;
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/
DSpanBuilderImpl.java33 import io.opencensus.trace.TraceOptions;
46 private static final TraceOptions SAMPLED_TRACE_OPTIONS =
47 TraceOptions.builder().setIsSampled(true).build();
48 private static final TraceOptions NOT_SAMPLED_TRACE_OPTIONS =
49 TraceOptions.builder().setIsSampled(false).build();
87 TraceOptions traceOptions = in startSpanInternal()
/external/llvm-project/lldb/tools/intel-features/intel-pt/
DPTDecoder.h26 class TraceOptions; variable
124 void SetSP(const std::shared_ptr<ptdecoder_private::TraceOptions> &ptr);
126 std::shared_ptr<ptdecoder_private::TraceOptions> m_opaque_sp;
DPTDecoder.cpp84 const std::shared_ptr<ptdecoder_private::TraceOptions> &ptr) { in SetSP()
141 std::shared_ptr<ptdecoder_private::TraceOptions> trace_options_ptr( in GetProcessorTraceInfo()
142 new TraceOptions()); in GetProcessorTraceInfo()
/external/opencensus-java/exporters/trace/instana/src/test/java/io/opencensus/exporter/trace/instana/
DInstanaExporterHandlerTest.java34 import io.opencensus.trace.TraceOptions;
72 TraceOptions.builder().setIsSampled(true).build()), in generateSpan_NoKindAndRemoteParent()
110 TraceOptions.builder().setIsSampled(true).build()), in generateSpan_ServerKind()
148 TraceOptions.builder().setIsSampled(true).build()), in generateSpan_ClientKind()
/external/opencensus-java/contrib/appengine_standard_util/src/test/java/io/opencensus/contrib/appengine/standard/util/
DAppEngineCloudTraceContextUtilsTest.java26 import io.opencensus.trace.TraceOptions;
73 TraceOptions.builder().setIsSampled(true).build())); in toFromSampledCloudTraceContext()
121 TraceOptions.builder().setIsSampled(false).build())); in toFromNotSampledCloudTraceContext()
/external/opencensus-java/exporters/trace/zipkin/src/test/java/io/opencensus/exporter/trace/zipkin/
DZipkinExporterHandlerTest.java33 import io.opencensus.trace.TraceOptions;
75 TraceOptions.builder().setIsSampled(true).build()), in generateSpan_NoKindAndRemoteParent()
116 TraceOptions.builder().setIsSampled(true).build()), in generateSpan_ServerKind()
157 TraceOptions.builder().setIsSampled(true).build()), in generateSpan_ClientKind()
202 TraceOptions.builder().setIsSampled(true).build()), in generateSpan_WithAttributes()
/external/grpc-grpc/src/cpp/ext/filters/census/
Drpc_encoding.h48 ::opencensus::trace::TraceOptions(trace_options)); in ToSpanContext()
58 uint8_t trace_options[::opencensus::trace::TraceOptions::kSize];
117 opencensus::trace::TraceOptions::kSize); in Encode()
156 opencensus::trace::TraceOptions::kSize); in ParseField()
/external/rust/crates/grpcio-sys/grpc/src/cpp/ext/filters/census/
Drpc_encoding.h48 ::opencensus::trace::TraceOptions(trace_options)); in ToSpanContext()
58 uint8_t trace_options[::opencensus::trace::TraceOptions::kSize];
117 opencensus::trace::TraceOptions::kSize); in Encode()
156 opencensus::trace::TraceOptions::kSize); in ParseField()
/external/opencensus-java/contrib/http_util/src/test/java/io/opencensus/contrib/http/util/
DCloudTraceFormatTest.java30 import io.opencensus.trace.TraceOptions;
72 private static final TraceOptions TRACE_OPTIONS_SAMPLED =
73 TraceOptions.builder().setIsSampled(true).build();
74 private static final TraceOptions TRACE_OPTIONS_NOT_SAMPLED = TraceOptions.DEFAULT;
/external/llvm-project/lldb/include/lldb/Utility/
DTraceOptions.h31 class TraceOptions {
33 TraceOptions() : m_trace_params(new StructuredData::Dictionary()) {} in TraceOptions() function

123