Home
last modified time | relevance | path

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

/external/opencensus-java/contrib/log_correlation/log4j2/src/main/java/io/opencensus/contrib/logcorrelation/log4j2/
DOpenCensusTraceContextDataInjector.java60 private static final SpanSelection DEFAULT_SPAN_SELECTION = SpanSelection.ALL_SPANS;
92 private final SpanSelection spanSelection;
99 public enum SpanSelection { enum in OpenCensusTraceContextDataInjector
130 public SpanSelection getSpanSelection() { in getSpanSelection()
147 OpenCensusTraceContextDataInjector(SpanSelection spanSelection) { in OpenCensusTraceContextDataInjector()
151 private static SpanSelection lookUpSpanSelectionProperty() { in lookUpSpanSelectionProperty()
158 private static SpanSelection parseSpanSelection(String spanSelection) { in parseSpanSelection()
160 return SpanSelection.valueOf(spanSelection); in parseSpanSelection()
DContextDataUtils.java19 import io.opencensus.contrib.logcorrelation.log4j2.OpenCensusTraceContextDataInjector.SpanSelection;
49 SpanSelection spanSelection, @Nullable List<Property> properties, StringMap reusable) { in injectContextData()
67 private static StringMap shareableRawContextData(SpanSelection spanSelection) { in shareableRawContextData()
74 static ReadOnlyStringMap nonShareableRawContextData(SpanSelection spanSelection) { in nonShareableRawContextData()
84 private static SpanContext shouldAddTracingDataToLogEvent(SpanSelection spanSelection) { in shouldAddTracingDataToLogEvent()
/external/opencensus-java/contrib/log_correlation/stackdriver/src/main/java/io/opencensus/contrib/logcorrelation/stackdriver/
DOpenCensusTraceLoggingEnhancer.java40 private static final SpanSelection DEFAULT_SPAN_SELECTION = SpanSelection.ALL_SPANS;
61 private final SpanSelection spanSelection;
71 public enum SpanSelection { enum in OpenCensusTraceLoggingEnhancer
122 public OpenCensusTraceLoggingEnhancer(@Nullable String projectId, SpanSelection spanSelection) { in OpenCensusTraceLoggingEnhancer()
135 private static SpanSelection lookUpSpanSelectionProperty() { in lookUpSpanSelectionProperty()
142 private static SpanSelection parseSpanSelection(String spanSelection) { in parseSpanSelection()
144 return SpanSelection.valueOf(spanSelection); in parseSpanSelection()
174 public SpanSelection getSpanSelection() { in getSpanSelection()
/external/opencensus-java/contrib/log_correlation/stackdriver/src/test/java/io/opencensus/contrib/logcorrelation/stackdriver/
DOpenCensusTraceLoggingEnhancerTest.java26 …port io.opencensus.contrib.logcorrelation.stackdriver.OpenCensusTraceLoggingEnhancer.SpanSelection;
64 new OpenCensusTraceLoggingEnhancer("my-test-project-1", SpanSelection.NO_SPANS), in enhanceLogEntry_DoNotAddSampledSpanToLogEntryWithNoSpans()
78 new OpenCensusTraceLoggingEnhancer("my-test-project-2", SpanSelection.SAMPLED_SPANS), in enhanceLogEntry_AddSampledSpanToLogEntryWithSampledSpans()
95 new OpenCensusTraceLoggingEnhancer("my-test-project-3", SpanSelection.ALL_SPANS), in enhanceLogEntry_AddSampledSpanToLogEntryWithAllSpans()
112 new OpenCensusTraceLoggingEnhancer("my-test-project-4", SpanSelection.NO_SPANS), in enhanceLogEntry_DoNotAddNonSampledSpanToLogEntryWithNoSpans()
126 new OpenCensusTraceLoggingEnhancer("my-test-project-5", SpanSelection.SAMPLED_SPANS), in enhanceLogEntry_DoNotAddNonSampledSpanToLogEntryWithSampledSpans()
140 new OpenCensusTraceLoggingEnhancer("my-test-project-6", SpanSelection.ALL_SPANS), in enhanceLogEntry_AddNonSampledSpanToLogEntryWithAllSpans()
157 new OpenCensusTraceLoggingEnhancer("my-test-project-7", SpanSelection.ALL_SPANS), in enhanceLogEntry_AddBlankSpanToLogEntryWithAllSpans()
169 new OpenCensusTraceLoggingEnhancer(null, SpanSelection.ALL_SPANS), in enhanceLogEntry_ConvertNullProjectIdToEmptyString()
199 .isEqualTo(SpanSelection.ALL_SPANS); in spanSelectionDefaultIsAllSpans()
[all …]
/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;
75 .isEqualTo(SpanSelection.ALL_SPANS); in spanSelectionDefaultIsAllSpans()
84 .isEqualTo(SpanSelection.NO_SPANS); in setSpanSelectionWithSystemProperty()
97 .isEqualTo(SpanSelection.ALL_SPANS); in useDefaultValueForInvalidSpanSelection()
106 new OpenCensusTraceContextDataInjector(SpanSelection.ALL_SPANS) in insertConfigurationProperties()
129 new OpenCensusTraceContextDataInjector(SpanSelection.ALL_SPANS) in handleEmptyConfigurationProperties()
136 new OpenCensusTraceContextDataInjector(SpanSelection.ALL_SPANS) in handleNullConfigurationProperties()
154 new OpenCensusTraceContextDataInjector(SpanSelection.ALL_SPANS); in rawContextDataWithTracingData()
187 new OpenCensusTraceContextDataInjector(SpanSelection.NO_SPANS); in rawContextDataWithoutTracingData()
DOpenCensusLog4jLogCorrelationNoSpansTest.java22 import io.opencensus.contrib.logcorrelation.log4j2.OpenCensusTraceContextDataInjector.SpanSelection;
44 initializeLog4j(SpanSelection.NO_SPANS); in setUp()
DOpenCensusLog4jLogCorrelationSampledSpansTest.java22 import io.opencensus.contrib.logcorrelation.log4j2.OpenCensusTraceContextDataInjector.SpanSelection;
44 initializeLog4j(SpanSelection.SAMPLED_SPANS); in setUp()
DAbstractOpenCensusLog4jLogCorrelationTest.java21 import io.opencensus.contrib.logcorrelation.log4j2.OpenCensusTraceContextDataInjector.SpanSelection;
58 static void initializeLog4j(SpanSelection spanSelection) { in initializeLog4j()
DOpenCensusLog4jLogCorrelationAllSpansTest.java22 import io.opencensus.contrib.logcorrelation.log4j2.OpenCensusTraceContextDataInjector.SpanSelection;
45 initializeLog4j(SpanSelection.ALL_SPANS); in setUp()