Class LoggingEventMapper.Builder

java.lang.Object
io.opentelemetry.instrumentation.logback.appender.v1_0.internal.LoggingEventMapper.Builder
Enclosing class:
LoggingEventMapper

public static final class LoggingEventMapper.Builder extends Object
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • 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. A null selector 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. A null selector 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. A null selector captures no logger context attributes.
    • setCaptureTemplate

      @CanIgnoreReturnValue public LoggingEventMapper.Builder setCaptureTemplate(boolean captureTemplate)
    • 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

      public LoggingEventMapper build()