Class OpenTelemetryEnvironmentVariableEnvironmentPostProcessor

java.lang.Object
org.springframework.boot.opentelemetry.autoconfigure.OpenTelemetryEnvironmentVariableEnvironmentPostProcessor
All Implemented Interfaces:
org.springframework.boot.EnvironmentPostProcessor

public class OpenTelemetryEnvironmentVariableEnvironmentPostProcessor extends Object implements org.springframework.boot.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
  • Constructor Details

    • OpenTelemetryEnvironmentVariableEnvironmentPostProcessor

      public OpenTelemetryEnvironmentVariableEnvironmentPostProcessor(org.springframework.boot.logging.DeferredLogFactory logFactory)
  • Method Details

    • postProcessEnvironment

      public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)
      Specified by:
      postProcessEnvironment in interface org.springframework.boot.EnvironmentPostProcessor