22title : Java Agent Declarative configuration
33linkTitle : Declarative configuration
44weight : 11
5- cSpell:ignore : genai
5+ cSpell:ignore : Customizer genai Dotel
66---
77
88Declarative configuration uses a YAML file instead of environment variables or
@@ -214,7 +214,8 @@ Java agent features that are not yet supported by declarative configuration:
214214 - can be worked around by adding a console span exporter in the configuration
215215 file
216216- using `GlobalConfigProvider` to access declarative configuration values in
217- custom code (by casting `GlobalOpenTelemetry.get()` to `ExtendedOpenTelemetry`)
217+ custom code (by casting `GlobalOpenTelemetry.get()` to
218+ ` ExtendedOpenTelemetry` )
218219
219220Contrib features that are not yet supported by declarative configuration :
220221
@@ -234,15 +235,16 @@ not yet support declarative configuration:
234235
235236Extensions use a new declarative configuration API.
236237
237- - Extensions that use `AutoConfigurationCustomizerProvider` will need to migrate to
238- the new `DeclarativeConfigurationCustomizerProvider` API.
239- Check out how the old
240- [AgentTracerProviderConfigurer](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/AgentTracerProviderConfigurer.java)
241- maps to the new
242- [SpanLoggingCustomizerProvider](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/SpanLoggingCustomizerProvider.java).
243- - Components, such as span exporters, need to use the `ComponentProvider` API now.
244- Check out the [Baggage Processor](https://github.com/open-telemetry/opentelemetry-java-contrib/tree/main/baggage-processor),
245- which supports both the old and new APIs, as an example.
238+ - Extensions that use `AutoConfigurationCustomizerProvider` will need to migrate
239+ to the new `DeclarativeConfigurationCustomizerProvider` API. Check out how the
240+ old
241+ [AgentTracerProviderConfigurer](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/AgentTracerProviderConfigurer.java)
242+ maps to the new
243+ [SpanLoggingCustomizerProvider](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/javaagent-tooling/src/main/java/io/opentelemetry/javaagent/tooling/SpanLoggingCustomizerProvider.java).
244+ - Components, such as span exporters, need to use the `ComponentProvider` API
245+ now. Check out the
246+ [Baggage Processor](https://github.com/open-telemetry/opentelemetry-java-contrib/tree/main/baggage-processor),
247+ which supports both the old and new APIs, as an example.
246248
247249[SDK Declarative configuration] :
248250 /docs/languages/sdk-configuration/declarative-configuration
0 commit comments