Class LoggingEventMapper.Builder
java.lang.Object
io.opentelemetry.instrumentation.logback.appender.v1_0.internal.LoggingEventMapper.Builder
- Enclosing class:
LoggingEventMapper
This class is internal and is hence not for public use. Its APIs are unstable and can change at
any time.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()setCaptureArguments(boolean captureArguments) setCaptureCodeAttributes(boolean captureCodeAttributes) setCaptureExperimentalAttributes(boolean captureExperimentalAttributes) setCaptureMarkerAttribute(boolean captureMarkerAttribute) setCaptureTemplate(boolean captureTemplate) setKeyValuePairAttributes(Predicate<String> keyValuePairAttributes) Sets the selector that decides which key value pair keys are captured as log attributes.setLoggerContextAttributes(Predicate<String> loggerContextAttributes) Sets the selector that decides which logger context property keys are captured as log attributes.setLogstashMarkerAttributes(Predicate<String> logstashMarkerAttributes) setLogstashStructuredArgumentAttributes(Predicate<String> logstashStructuredArgumentAttributes) setMdcAttributes(Predicate<String> mdcAttributes) Sets the selector that decides which MDC keys are captured as log attributes.
-
Method Details
-
setCaptureExperimentalAttributes
@CanIgnoreReturnValue public LoggingEventMapper.Builder setCaptureExperimentalAttributes(boolean captureExperimentalAttributes) -
setMdcAttributes
@CanIgnoreReturnValue public LoggingEventMapper.Builder setMdcAttributes(@Nullable Predicate<String> mdcAttributes) Sets the selector that decides which MDC keys are captured as log attributes. Anullselector captures no MDC attributes. -
setCaptureCodeAttributes
@CanIgnoreReturnValue public LoggingEventMapper.Builder setCaptureCodeAttributes(boolean captureCodeAttributes) -
setCaptureMarkerAttribute
@CanIgnoreReturnValue public LoggingEventMapper.Builder setCaptureMarkerAttribute(boolean captureMarkerAttribute) -
setKeyValuePairAttributes
@CanIgnoreReturnValue public LoggingEventMapper.Builder setKeyValuePairAttributes(@Nullable Predicate<String> keyValuePairAttributes) Sets the selector that decides which key value pair keys are captured as log attributes. Anullselector captures no key value pair attributes. -
setLoggerContextAttributes
@CanIgnoreReturnValue public LoggingEventMapper.Builder setLoggerContextAttributes(@Nullable Predicate<String> loggerContextAttributes) Sets the selector that decides which logger context property keys are captured as log attributes. Anullselector captures no logger context attributes. -
setCaptureTemplate
-
setCaptureArguments
@CanIgnoreReturnValue public LoggingEventMapper.Builder setCaptureArguments(boolean captureArguments) -
setLogstashMarkerAttributes
@CanIgnoreReturnValue public LoggingEventMapper.Builder setLogstashMarkerAttributes(@Nullable Predicate<String> logstashMarkerAttributes) -
setLogstashStructuredArgumentAttributes
@CanIgnoreReturnValue public LoggingEventMapper.Builder setLogstashStructuredArgumentAttributes(@Nullable Predicate<String> logstashStructuredArgumentAttributes) -
build
-