Interface ExtendedOpenTelemetry
- All Superinterfaces:
ExtensionPoint
,io.opentelemetry.api.OpenTelemetry
- All Known Implementing Classes:
ReconfigurableOpenTelemetry
Extension of
OpenTelemetry
that provides additional functionality:
- Accessor to the
EventLoggerProvider
without requiring using a separateGlobalEventLoggerProvider
- Read access top the
ConfigProperties
andResource
- Ability to be reconfigured through
configure(Map, Resource, boolean)
- Ability to be used as a Jenkins
Extension
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Map<String, String> openTelemetryProperties, io.opentelemetry.sdk.resources.Resource openTelemetryResource) Deprecated.default void
configure
(Map<String, String> openTelemetryProperties, io.opentelemetry.sdk.resources.Resource openTelemetryResource, boolean disableShutdownHook) Reconfigures theOpenTelemetry
instance.io.opentelemetry.api.incubator.events.EventLoggerBuilder
eventLoggerBuilder
(String instrumentationScopeName) io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties
ConfigProperties
used to instantiate this OpenTelemetry instance using theAutoConfiguredOpenTelemetrySdk
.io.opentelemetry.api.incubator.events.EventLoggerProvider
io.opentelemetry.api.OpenTelemetry
Deprecated.io.opentelemetry.sdk.resources.Resource
Resource
used by this OpenTelemetry instance for the resource attributes of the produced telemetryMethods inherited from interface io.opentelemetry.api.OpenTelemetry
getLogsBridge, getMeter, getMeterProvider, getPropagators, getTracer, getTracer, getTracerProvider, meterBuilder, tracerBuilder
-
Method Details
-
getEventLoggerProvider
io.opentelemetry.api.incubator.events.EventLoggerProvider getEventLoggerProvider() -
eventLoggerBuilder
io.opentelemetry.api.incubator.events.EventLoggerBuilder eventLoggerBuilder(String instrumentationScopeName) -
getConfig
io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties getConfig()ConfigProperties
used to instantiate this OpenTelemetry instance using theAutoConfiguredOpenTelemetrySdk
. -
getResource
io.opentelemetry.sdk.resources.Resource getResource()Resource
used by this OpenTelemetry instance for the resource attributes of the produced telemetry -
configure
@Deprecated void configure(@NonNull Map<String, String> openTelemetryProperties, io.opentelemetry.sdk.resources.Resource openTelemetryResource) Deprecated. -
configure
default void configure(@NonNull Map<String, String> openTelemetryProperties, io.opentelemetry.sdk.resources.Resource openTelemetryResource, boolean disableShutdownHook) Reconfigures theOpenTelemetry
instance. If no exporter is explicitly defined, this OpenTelemetry instance is NoOp.- Parameters:
openTelemetryProperties
- properties used asConfigProperties
throughAutoConfiguredOpenTelemetrySdkBuilder.addPropertiesSupplier(Supplier)
openTelemetryResource
- resource attributes passed throughAutoConfiguredOpenTelemetrySdkBuilder.addResourceCustomizer(BiFunction)
disableShutdownHook
- enable / disable a shutdown hook
-
getImplementation
Deprecated.
-
configure(Map, Resource, boolean)