Home
last modified time | relevance | path

Searched refs:getTraceOptions (Results 1 – 19 of 19) sorted by relevance

/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/
DSpanBuilderImplTest.java117 assertThat(span.getContext().getTraceOptions().isSampled()).isTrue(); in startSpanNullParent()
135 assertThat(span.getContext().getTraceOptions().isSampled()).isFalse(); in startSpanNullParentWithRecordEvents()
149 assertThat(span.getContext().getTraceOptions().isSampled()).isFalse(); in startSpanNullParentNoRecordOptions()
158 assertThat(rootSpan.getContext().getTraceOptions().isSampled()).isTrue(); in startChildSpan()
180 assertThat(span.getContext().getTraceOptions().isSampled()).isTrue(); in startRemoteSpan_NullParent()
195 assertThat(span.getContext().getTraceOptions().isSampled()).isTrue(); in startRemoteSpanInvalidParent()
215 assertThat(span.getContext().getTraceOptions().isSampled()).isTrue(); in startRemoteSpan()
229 assertThat(rootSpan.getContext().getTraceOptions().isSampled()).isFalse(); in startRootSpan_WithSpecifiedSampler()
238 assertThat(rootSpan.getContext().getTraceOptions().isSampled()).isTrue(); in startRootSpan_WithoutSpecifiedSampler()
248 assertThat(rootSpan.getContext().getTraceOptions().isSampled()).isTrue(); in startRemoteChildSpan_WithSpecifiedSampler()
[all …]
/external/opencensus-java/api/src/test/java/io/opencensus/trace/
DSpanContextTest.java54 assertThat(SpanContext.INVALID.getTraceOptions()).isEqualTo(TraceOptions.DEFAULT); in invalidSpanContext()
87 public void getTraceOptions() { in getTraceOptions() method in SpanContextTest
88 assertThat(first.getTraceOptions()).isEqualTo(TraceOptions.DEFAULT); in getTraceOptions()
89 assertThat(second.getTraceOptions()) in getTraceOptions()
/external/opencensus-java/api/src/main/java/io/opencensus/trace/samplers/
DProbabilitySampler.java82 if (parentContext != null && parentContext.getTraceOptions().isSampled()) { in shouldSample()
88 if (parentLink.getContext().getTraceOptions().isSampled()) { in shouldSample()
/external/opencensus-java/contrib/spring_sleuth_v1x/src/test/java/io/opencensus/contrib/spring/sleuth/v1x/
DOpenCensusSleuthSpanContextHolderTest.java50 assertThat(tracer.getCurrentSpan().getContext().getTraceOptions().isSampled()).isTrue(); in testFromSleuthSampled()
62 assertThat(tracer.getCurrentSpan().getContext().getTraceOptions().isSampled()).isFalse(); in testFromSleuthUnsampled()
148 assertThat(span.getContext().getTraceOptions().isSampled()) in assertSpanEquals()
DOpenCensusSleuthSpanTest.java63 assertThat(span.getContext().getTraceOptions().isSampled()) in assertSpanEquals()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/
DStartEndHandlerImpl.java73 || span.getContext().getTraceOptions().isSampled()) { in onEnd()
116 if (span.getContext().getTraceOptions().isSampled()) { in process()
DSpanBuilderImpl.java138 return parent.getTraceOptions().isSampled() || isAnyParentLinkSampled(parentLinks); in makeSamplingDecision()
143 if (parentLink.getContext().getTraceOptions().isSampled()) { in isAnyParentLinkSampled()
/external/opencensus-java/contrib/log_correlation/stackdriver/src/main/java/io/opencensus/contrib/logcorrelation/stackdriver/
DOpenCensusTraceLoggingEnhancer.java186 if (span.getTraceOptions().isSampled()) { in enhanceLogEntry()
208 builder.addLabel(SAMPLED_LABEL_KEY, Boolean.toString(span.getTraceOptions().isSampled())); in addTracingData()
/external/opencensus-java/contrib/log_correlation/log4j2/src/main/java/io/opencensus/contrib/logcorrelation/log4j2/
DContextDataUtils.java90 if (spanContext.getTraceOptions().isSampled()) { in shouldAddTracingDataToLogEvent()
144 spanContext.getTraceOptions().isSampled() ? "true" : "false"); in getShareableContextAndTracingData()
/external/opencensus-java/api/src/main/java/io/opencensus/trace/
DSpanContext.java102 public TraceOptions getTraceOptions() { in getTraceOptions() method in SpanContext
DSpan.java83 !context.getTraceOptions().isSampled() || (this.options.contains(Options.RECORD_EVENTS)), in Span()
/external/opencensus-java/contrib/appengine_standard_util/src/main/java/io/opencensus/contrib/appengine/standard/util/
DAppEngineCloudTraceContextUtils.java94 spanContext.getTraceOptions().isSampled() ? 1L : 0L); in toCloudTraceContext()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/propagation/
DBinaryFormatImpl.java104 spanContext.getTraceOptions().copyBytesTo(bytes, TRACE_OPTIONS_OFFSET); in toByteArray()
DB3Format.java74 if (spanContext.getTraceOptions().isSampled()) { in inject()
/external/opencensus-java/contrib/http_util/src/main/java/io/opencensus/contrib/http/util/
DCloudTraceFormat.java100 .append(spanContext.getTraceOptions().isSampled() ? SAMPLED : NOT_SAMPLED); in inject()
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/propagation/
DBinaryFormatImplTest.java189 assertThat(extracted.getTraceOptions()).isEqualTo(TraceOptions.DEFAULT); in fromBinaryValue_MissingTraceOptionsOk()
/external/opencensus-java/exporters/trace/jaeger/src/main/java/io/opencensus/exporter/trace/jaeger/
DJaegerExporterHandler.java201 optionsToFlags(context.getTraceOptions()), in spanDataToJaegerThriftSpan()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/trace/export/
DInProcessSampledSpanStoreImpl.java74 if (span.getContext().getTraceOptions().isSampled()) { in considerForSampling()
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/
DTracezZPageHandler.java330 spanContext.getTraceOptions().isSampled() in emitSingleSpan()