Interface AutoConfigurationCustomizer
public interface AutoConfigurationCustomizer
A builder for customizing OpenTelemetry auto-configuration.
-
Method Summary
Modifier and TypeMethodDescriptiondefault AutoConfigurationCustomizer
addLogEmitterProviderCustomizer
(BiFunction<io.opentelemetry.sdk.logs.SdkLogEmitterProviderBuilder, ConfigProperties, io.opentelemetry.sdk.logs.SdkLogEmitterProviderBuilder> meterProviderCustomizer) Adds aBiFunction
to invoke the with theSdkLogEmitterProviderBuilder
to allow customization.default AutoConfigurationCustomizer
addLogExporterCustomizer
(BiFunction<? super io.opentelemetry.sdk.logs.export.LogExporter, ConfigProperties, ? extends io.opentelemetry.sdk.logs.export.LogExporter> exporterCustomizer) Adds aBiFunction
to invoke with the default autoconfiguredLogExporter
to allow customization.default AutoConfigurationCustomizer
addMeterProviderCustomizer
(BiFunction<io.opentelemetry.sdk.metrics.SdkMeterProviderBuilder, ConfigProperties, io.opentelemetry.sdk.metrics.SdkMeterProviderBuilder> meterProviderCustomizer) Adds aBiFunction
to invoke the with theSdkMeterProviderBuilder
to allow customization.default AutoConfigurationCustomizer
addMetricExporterCustomizer
(BiFunction<? super io.opentelemetry.sdk.metrics.export.MetricExporter, ConfigProperties, ? extends io.opentelemetry.sdk.metrics.export.MetricExporter> exporterCustomizer) Adds aBiFunction
to invoke with the default autoconfiguredMetricExporter
to allow customization.addPropagatorCustomizer
(BiFunction<? super io.opentelemetry.context.propagation.TextMapPropagator, ConfigProperties, ? extends io.opentelemetry.context.propagation.TextMapPropagator> propagatorCustomizer) Adds aBiFunction
to invoke with the default autoconfiguredTextMapPropagator
to allow customization.addPropertiesSupplier
(Supplier<Map<String, String>> propertiesSupplier) Adds aSupplier
of a map of property names and values to use as defaults for theConfigProperties
used during auto-configuration.addResourceCustomizer
(BiFunction<? super io.opentelemetry.sdk.resources.Resource, ConfigProperties, ? extends io.opentelemetry.sdk.resources.Resource> resourceCustomizer) Adds aBiFunction
to invoke with the default autoconfiguredResource
to allow customization.addSamplerCustomizer
(BiFunction<? super io.opentelemetry.sdk.trace.samplers.Sampler, ConfigProperties, ? extends io.opentelemetry.sdk.trace.samplers.Sampler> samplerCustomizer) Adds aBiFunction
to invoke with the default autoconfiguredSampler
to allow customization.addSpanExporterCustomizer
(BiFunction<? super io.opentelemetry.sdk.trace.export.SpanExporter, ConfigProperties, ? extends io.opentelemetry.sdk.trace.export.SpanExporter> exporterCustomizer) Adds aBiFunction
to invoke with the default autoconfiguredSpanExporter
to allow customization.default AutoConfigurationCustomizer
addTracerProviderCustomizer
(BiFunction<io.opentelemetry.sdk.trace.SdkTracerProviderBuilder, ConfigProperties, io.opentelemetry.sdk.trace.SdkTracerProviderBuilder> tracerProviderCustomizer) Adds aBiFunction
to invoke the with theSdkTracerProviderBuilder
to allow customization.
-
Method Details
-
addPropagatorCustomizer
AutoConfigurationCustomizer addPropagatorCustomizer(BiFunction<? super io.opentelemetry.context.propagation.TextMapPropagator, ConfigProperties, ? extends io.opentelemetry.context.propagation.TextMapPropagator> propagatorCustomizer) Adds aBiFunction
to invoke with the default autoconfiguredTextMapPropagator
to allow customization. The return value of theBiFunction
will replace the passed-in argument.Multiple calls will execute the customizers in order.
-
addResourceCustomizer
AutoConfigurationCustomizer addResourceCustomizer(BiFunction<? super io.opentelemetry.sdk.resources.Resource, ConfigProperties, ? extends io.opentelemetry.sdk.resources.Resource> resourceCustomizer) Adds aBiFunction
to invoke with the default autoconfiguredResource
to allow customization. The return value of theBiFunction
will replace the passed-in argument.Multiple calls will execute the customizers in order.
-
addSamplerCustomizer
AutoConfigurationCustomizer addSamplerCustomizer(BiFunction<? super io.opentelemetry.sdk.trace.samplers.Sampler, ConfigProperties, ? extends io.opentelemetry.sdk.trace.samplers.Sampler> samplerCustomizer) Adds aBiFunction
to invoke with the default autoconfiguredSampler
to allow customization. The return value of theBiFunction
will replace the passed-in argument.Multiple calls will execute the customizers in order.
-
addSpanExporterCustomizer
AutoConfigurationCustomizer addSpanExporterCustomizer(BiFunction<? super io.opentelemetry.sdk.trace.export.SpanExporter, ConfigProperties, ? extends io.opentelemetry.sdk.trace.export.SpanExporter> exporterCustomizer) Adds aBiFunction
to invoke with the default autoconfiguredSpanExporter
to allow customization. The return value of theBiFunction
will replace the passed-in argument.Multiple calls will execute the customizers in order.
-
addPropertiesSupplier
Adds aSupplier
of a map of property names and values to use as defaults for theConfigProperties
used during auto-configuration. The order of precedence of properties is system properties > environment variables > the suppliers registered with this method.Multiple calls will cause properties to be merged in order, with later ones overwriting duplicate keys in earlier ones.
-
addTracerProviderCustomizer
default AutoConfigurationCustomizer addTracerProviderCustomizer(BiFunction<io.opentelemetry.sdk.trace.SdkTracerProviderBuilder, ConfigProperties, io.opentelemetry.sdk.trace.SdkTracerProviderBuilder> tracerProviderCustomizer) Adds aBiFunction
to invoke the with theSdkTracerProviderBuilder
to allow customization. The return value of theBiFunction
will replace the passed-in argument.Multiple calls will execute the customizers in order.
-
addMeterProviderCustomizer
default AutoConfigurationCustomizer addMeterProviderCustomizer(BiFunction<io.opentelemetry.sdk.metrics.SdkMeterProviderBuilder, ConfigProperties, io.opentelemetry.sdk.metrics.SdkMeterProviderBuilder> meterProviderCustomizer) Adds aBiFunction
to invoke the with theSdkMeterProviderBuilder
to allow customization. The return value of theBiFunction
will replace the passed-in argument.Multiple calls will execute the customizers in order.
-
addMetricExporterCustomizer
default AutoConfigurationCustomizer addMetricExporterCustomizer(BiFunction<? super io.opentelemetry.sdk.metrics.export.MetricExporter, ConfigProperties, ? extends io.opentelemetry.sdk.metrics.export.MetricExporter> exporterCustomizer) Adds aBiFunction
to invoke with the default autoconfiguredMetricExporter
to allow customization. The return value of theBiFunction
will replace the passed-in argument.Multiple calls will execute the customizers in order.
-
addLogEmitterProviderCustomizer
default AutoConfigurationCustomizer addLogEmitterProviderCustomizer(BiFunction<io.opentelemetry.sdk.logs.SdkLogEmitterProviderBuilder, ConfigProperties, io.opentelemetry.sdk.logs.SdkLogEmitterProviderBuilder> meterProviderCustomizer) Adds aBiFunction
to invoke the with theSdkLogEmitterProviderBuilder
to allow customization. The return value of theBiFunction
will replace the passed-in argument.Multiple calls will execute the customizers in order.
-
addLogExporterCustomizer
default AutoConfigurationCustomizer addLogExporterCustomizer(BiFunction<? super io.opentelemetry.sdk.logs.export.LogExporter, ConfigProperties, ? extends io.opentelemetry.sdk.logs.export.LogExporter> exporterCustomizer) Adds aBiFunction
to invoke with the default autoconfiguredLogExporter
to allow customization. The return value of theBiFunction
will replace the passed-in argument.Multiple calls will execute the customizers in order.
-