Package io.opentelemetry.api.incubator
Interface ExtendedOpenTelemetry
- All Superinterfaces:
io.opentelemetry.api.OpenTelemetry
public interface ExtendedOpenTelemetry
extends io.opentelemetry.api.OpenTelemetry
Extension to
OpenTelemetry with experimental APIs.-
Method Summary
Modifier and TypeMethodDescriptiondefault ConfigProviderReturns theConfigProviderfor thisOpenTelemetry.default DeclarativeConfigPropertiesReturns theDeclarativeConfigPropertiesfor general instrumentation configuration.default DeclarativeConfigPropertiesReturns theDeclarativeConfigPropertiesfor a specific instrumentation by name.Methods inherited from interface io.opentelemetry.api.OpenTelemetry
getLogsBridge, getMeter, getMeterProvider, getPropagators, getTracer, getTracer, getTracerProvider, meterBuilder, tracerBuilder
-
Method Details
-
getConfigProvider
Returns theConfigProviderfor thisOpenTelemetry. -
getInstrumentationConfig
Returns theDeclarativeConfigPropertiesfor a specific instrumentation by name. If no configuration is available for the given name, an emptyDeclarativeConfigPropertiesis returned.For example,
getInstrumentationConfig("foo")returns the node:instrumentation/development: java: foo:- Parameters:
name- the name of the instrumentation- Returns:
- the
DeclarativeConfigPropertiesfor the given instrumentation name
-
getGeneralInstrumentationConfig
Returns theDeclarativeConfigPropertiesfor general instrumentation configuration.instrumentation/development: general:If the general configuration is not available, an empty
DeclarativeConfigPropertiesis returned.- Returns:
- the
DeclarativeConfigPropertiesfor the general instrumentation configuration
-