Home
last modified time | relevance | path

Searched refs:spanSelection (Results 1 – 6 of 6) sorted by relevance

/external/opencensus-java/contrib/log_correlation/log4j2/src/main/java/io/opencensus/contrib/logcorrelation/log4j2/
DOpenCensusTraceContextDataInjector.java92 private final SpanSelection spanSelection; field in OpenCensusTraceContextDataInjector
131 return spanSelection; in getSpanSelection()
147 OpenCensusTraceContextDataInjector(SpanSelection spanSelection) { in OpenCensusTraceContextDataInjector() argument
148 this.spanSelection = spanSelection; in OpenCensusTraceContextDataInjector()
158 private static SpanSelection parseSpanSelection(String spanSelection) { in parseSpanSelection() argument
160 return SpanSelection.valueOf(spanSelection); in parseSpanSelection()
169 return ContextDataUtils.injectContextData(spanSelection, properties, reusable); in injectContextData()
175 return ContextDataUtils.nonShareableRawContextData(spanSelection); in rawContextData()
DContextDataUtils.java49 SpanSelection spanSelection, @Nullable List<Property> properties, StringMap reusable) { in injectContextData() argument
51 return shareableRawContextData(spanSelection); in injectContextData()
57 reusable.putAll(nonShareableRawContextData(spanSelection)); in injectContextData()
67 private static StringMap shareableRawContextData(SpanSelection spanSelection) { in shareableRawContextData() argument
68 SpanContext spanContext = shouldAddTracingDataToLogEvent(spanSelection); in shareableRawContextData()
74 static ReadOnlyStringMap nonShareableRawContextData(SpanSelection spanSelection) { in nonShareableRawContextData() argument
75 SpanContext spanContext = shouldAddTracingDataToLogEvent(spanSelection); in nonShareableRawContextData()
84 private static SpanContext shouldAddTracingDataToLogEvent(SpanSelection spanSelection) { in shouldAddTracingDataToLogEvent() argument
85 switch (spanSelection) { in shouldAddTracingDataToLogEvent()
98 throw new AssertionError("Unknown spanSelection: " + spanSelection); in shouldAddTracingDataToLogEvent()
/external/opencensus-java/contrib/log_correlation/stackdriver/src/main/java/io/opencensus/contrib/logcorrelation/stackdriver/
DOpenCensusTraceLoggingEnhancer.java61 private final SpanSelection spanSelection; field in OpenCensusTraceLoggingEnhancer
122 public OpenCensusTraceLoggingEnhancer(@Nullable String projectId, SpanSelection spanSelection) { in OpenCensusTraceLoggingEnhancer() argument
124 this.spanSelection = spanSelection; in OpenCensusTraceLoggingEnhancer()
142 private static SpanSelection parseSpanSelection(String spanSelection) { in parseSpanSelection() argument
144 return SpanSelection.valueOf(spanSelection); in parseSpanSelection()
175 return spanSelection; in getSpanSelection()
181 switch (spanSelection) { in enhanceLogEntry()
194 throw new AssertionError("Unknown spanSelection: " + spanSelection); in enhanceLogEntry()
/external/opencensus-java/contrib/log_correlation/log4j2/src/test/java/io/opencensus/contrib/logcorrelation/log4j2/
DAbstractOpenCensusLog4jLogCorrelationTest.java58 static void initializeLog4j(SpanSelection spanSelection) { in initializeLog4j() argument
60 OpenCensusTraceContextDataInjector.SPAN_SELECTION_PROPERTY_NAME, spanSelection.toString()); in initializeLog4j()
/external/opencensus-java/contrib/log_correlation/stackdriver/
DREADME.md67 `io.opencensus.contrib.logcorrelation.stackdriver.OpenCensusTraceLoggingEnhancer.spanSelection`
85 enhancers. Optionally, set the `spanSelection` and `projectId` properties described above as system
94 …sus.contrib.logcorrelation.stackdriver.OpenCensusTraceLoggingEnhancer.spanSelection" value="SAMPLE…
115 enhancers. Optionally, set the `spanSelection` and `projectId` properties described above in the
128 io.opencensus.contrib.logcorrelation.stackdriver.OpenCensusTraceLoggingEnhancer.spanSelection=SAMPL…
/external/opencensus-java/contrib/log_correlation/log4j2/
DREADME.md57 `io.opencensus.contrib.logcorrelation.log4j2.OpenCensusTraceContextDataInjector.spanSelection`