Interface OTelBuildConfig
@ConfigMapping(prefix="quarkus.otel")
@ConfigRoot(phase=BUILD_AND_RUN_TIME_FIXED)
public interface OTelBuildConfig
Build Time configuration where all the attributes related with
classloading must live because of the native image needs
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceQuarkus security events exported as the OpenTelemetry Span events. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()If false, disable the OpenTelemetry usage at build time.Enable/disable instrumentation for specific technologies.logs()Logs exporter configurations.metrics()Metrics exporter configurations.The propagators to be used.Allows to export Quarkus security events as the OpenTelemetry Span events.booleansimple()Should we use simple processor for spans and log records.traces()Trace exporter configurations.
-
Field Details
-
INSTRUMENTATION_NAME
- See Also:
-
-
Method Details
-
enabled
@WithDefault("true") boolean enabled()If false, disable the OpenTelemetry usage at build time. All other Otel properties will be ignored at runtime.Will pick up value from legacy property quarkus.opentelemetry.enabled
Defaults to
true. -
simple
@WithDefault("false") boolean simple()Should we use simple processor for spans and log records. This will disable batch processing and the exporter will send telemetry data right away. This is recommended for serverless applications.Defaults to
false. -
traces
TracesBuildConfig traces()Trace exporter configurations. -
metrics
MetricsBuildConfig metrics()Metrics exporter configurations. -
logs
LogsBuildConfig logs()Logs exporter configurations. -
propagators
The propagators to be used. Use a comma-separated list for multiple propagators.Has values from
PropagatorTypeor the full qualified name of a class implementingTextMapPropagator.Default is "tracecontext","baggage" (W3C).
-
instrument
InstrumentBuildTimeConfig instrument()Enable/disable instrumentation for specific technologies. -
securityEvents
OTelBuildConfig.SecurityEvents securityEvents()Allows to export Quarkus security events as the OpenTelemetry Span events.
-