Home
last modified time | relevance | path

Searched refs:OpenCensusTraceContextDataInjector (Results 1 – 9 of 9) sorted by relevance

/external/opencensus-java/contrib/log_correlation/log4j2/src/test/java/io/opencensus/contrib/logcorrelation/log4j2/
DOpenCensusTraceContextDataInjectorTest.java23 import io.opencensus.contrib.logcorrelation.log4j2.OpenCensusTraceContextDataInjector.SpanSelection;
50 assertThat(OpenCensusTraceContextDataInjector.SPAN_SELECTION_PROPERTY_NAME) in spanSelectionPropertyName()
51 .isEqualTo(OpenCensusTraceContextDataInjector.class.getName() + ".spanSelection"); in spanSelectionPropertyName()
56 assertThat(OpenCensusTraceContextDataInjector.TRACE_ID_CONTEXT_KEY) in traceIdKey()
62 assertThat(OpenCensusTraceContextDataInjector.SPAN_ID_CONTEXT_KEY) in spanIdKey()
68 assertThat(OpenCensusTraceContextDataInjector.TRACE_SAMPLED_CONTEXT_KEY) in traceSampledKey()
74 assertThat(new OpenCensusTraceContextDataInjector().getSpanSelection()) in spanSelectionDefaultIsAllSpans()
82 OpenCensusTraceContextDataInjector.SPAN_SELECTION_PROPERTY_NAME, "NO_SPANS"); in setSpanSelectionWithSystemProperty()
83 assertThat(new OpenCensusTraceContextDataInjector().getSpanSelection()) in setSpanSelectionWithSystemProperty()
86 System.clearProperty(OpenCensusTraceContextDataInjector.SPAN_SELECTION_PROPERTY_NAME); in setSpanSelectionWithSystemProperty()
[all …]
DOpenCensusLog4jLogCorrelationAllSpansTest.java22 import io.opencensus.contrib.logcorrelation.log4j2.OpenCensusTraceContextDataInjector.SpanSelection;
153 OpenCensusTraceContextDataInjector.TRACE_ID_CONTEXT_KEY, "existingTraceId"); in overwriteExistingTracingKey()
157 ThreadContext.remove(OpenCensusTraceContextDataInjector.TRACE_ID_CONTEXT_KEY); in overwriteExistingTracingKey()
DAbstractOpenCensusLog4jLogCorrelationTest.java21 import io.opencensus.contrib.logcorrelation.log4j2.OpenCensusTraceContextDataInjector.SpanSelection;
60 OpenCensusTraceContextDataInjector.SPAN_SELECTION_PROPERTY_NAME, spanSelection.toString()); in initializeLog4j()
DOpenCensusLog4jLogCorrelationNoSpansTest.java22 import io.opencensus.contrib.logcorrelation.log4j2.OpenCensusTraceContextDataInjector.SpanSelection;
DOpenCensusLog4jLogCorrelationSampledSpansTest.java22 import io.opencensus.contrib.logcorrelation.log4j2.OpenCensusTraceContextDataInjector.SpanSelection;
/external/opencensus-java/contrib/log_correlation/log4j2/src/main/java/io/opencensus/contrib/logcorrelation/log4j2/
DOpenCensusTraceContextDataInjector.java59 public final class OpenCensusTraceContextDataInjector implements ContextDataInjector { class
142 public OpenCensusTraceContextDataInjector() { in OpenCensusTraceContextDataInjector() method in OpenCensusTraceContextDataInjector
147 OpenCensusTraceContextDataInjector(SpanSelection spanSelection) { in OpenCensusTraceContextDataInjector() method in OpenCensusTraceContextDataInjector
DContextDataUtils.java19 import io.opencensus.contrib.logcorrelation.log4j2.OpenCensusTraceContextDataInjector.SpanSelection;
137 OpenCensusTraceContextDataInjector.TRACE_ID_CONTEXT_KEY, in getShareableContextAndTracingData()
140 OpenCensusTraceContextDataInjector.SPAN_ID_CONTEXT_KEY, in getShareableContextAndTracingData()
143 OpenCensusTraceContextDataInjector.TRACE_SAMPLED_CONTEXT_KEY, in getShareableContextAndTracingData()
/external/opencensus-java/contrib/log_correlation/log4j2/
DREADME.md14 `OpenCensusTraceContextDataInjector`. `OpenCensusTraceContextDataInjector` adds the current trace
44 ### Configure the `OpenCensusTraceContextDataInjector`
50 `io.opencensus.contrib.logcorrelation.log4j2.OpenCensusTraceContextDataInjector`.
57 `io.opencensus.contrib.logcorrelation.log4j2.OpenCensusTraceContextDataInjector.spanSelection`
Dbuild.gradle21 'io.opencensus.contrib.logcorrelation.log4j2.OpenCensusTraceContextDataInjector'