Package io.helidon.telemetry.otelconfig
Interface OpenTelemetryLoggingConfig
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
OpenTelemetryLoggingConfig.BuilderBase.OpenTelemetryLoggingConfigImpl
Configuration settings for OpenTelemetry logging. Optional values left unspecified in the configuration defer to the
OpenTelemetry defaults.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forOpenTelemetryLoggingConfig.static classOpenTelemetryLoggingConfig.BuilderBase<BUILDER extends OpenTelemetryLoggingConfig.BuilderBase<BUILDER,PROTOTYPE>, PROTOTYPE extends OpenTelemetryLoggingConfig> Fluent API builder base forOpenTelemetryLoggingConfig. -
Method Summary
Modifier and TypeMethodDescriptionOptional<io.opentelemetry.api.common.AttributesBuilder> Name/value pairs passed to OpenTelemetry.builder()Create a new fluent API builder to customize configuration.builder(OpenTelemetryLoggingConfig instance) Create a new fluent API builder from an existing instance.static OpenTelemetryLoggingConfigcreate()Create a new instance with default values.static OpenTelemetryLoggingConfigDeprecated.static OpenTelemetryLoggingConfigCreate a new instance from configuration.enabled()Whether the OpenTelemetry logger should be enabled.Log record exporters.Optional<io.opentelemetry.sdk.logs.LogLimits> Log limits to apply to log transmission.Optional<io.opentelemetry.api.logs.Severity> Minimum severity level of log records to process.Settings for logging processors.List<io.opentelemetry.sdk.logs.LogRecordProcessor> Pre-constructed (non-configured) logging processors.Whether to include only log records from traces which are sampled.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Deprecated.Create a new instance from configuration.- Parameters:
config- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
enabled
Whether the OpenTelemetry logger should be enabled. (Passed to OpenTelemetry.)- Returns:
- true if the OpenTelemetry logger should be enabled, false otherwise
-
minimumSeverity
Optional<io.opentelemetry.api.logs.Severity> minimumSeverity()Minimum severity level of log records to process.- Returns:
- minimum severity level
-
traceBased
Whether to include only log records from traces which are sampled. Defaults to the OpenTelemetry default.- Returns:
- whether to restrict exported log records to only those from sampled traces
-
logLimits
Optional<io.opentelemetry.sdk.logs.LogLimits> logLimits()Log limits to apply to log transmission.- Returns:
- log limits
-
processorConfigs
List<ProcessorConfig> processorConfigs()Settings for logging processors.- Returns:
- logging processors
-
processors
List<io.opentelemetry.sdk.logs.LogRecordProcessor> processors()Pre-constructed (non-configured) logging processors.- Returns:
- logging processors
-
exporterConfigs
Log record exporters.The key in the map is a unique name--of the user's choice--for the exporter config settings. The
ProcessorConfig.exporters()config setting for a processor config specifies zero or more of these names to associate the exporters built from the exporter configs with the processor built from the processor config.- Returns:
- log record exporters
-
attributes
Optional<io.opentelemetry.api.common.AttributesBuilder> attributes()Name/value pairs passed to OpenTelemetry.- Returns:
- typed attribute settings
-
create(io.helidon.config.Config)