Class OpenTelemetryEnvironmentVariableEnvironmentPostProcessor
java.lang.Object
org.springframework.boot.opentelemetry.autoconfigure.OpenTelemetryEnvironmentVariableEnvironmentPostProcessor
- All Implemented Interfaces:
EnvironmentPostProcessor
public class OpenTelemetryEnvironmentVariableEnvironmentPostProcessor
extends Object
implements EnvironmentPostProcessor
Converts OpenTelemetry SDK environment variables into Spring Boot properties.
Can be disabled by setting management.opentelemetry.map-environment-variables
to false.
- Since:
- 4.1.0
- Author:
- Moritz Halbritter
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidpostProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) Post-process the givenenvironment.
-
Constructor Details
-
OpenTelemetryEnvironmentVariableEnvironmentPostProcessor
-
-
Method Details
-
postProcessEnvironment
public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) Description copied from interface:EnvironmentPostProcessorPost-process the givenenvironment.- Specified by:
postProcessEnvironmentin interfaceEnvironmentPostProcessor- Parameters:
environment- the environment to post-processapplication- the application to which the environment belongs
-