Class OpenTelemetryResourceAutoConfiguration


  • public final class OpenTelemetryResourceAutoConfiguration
    extends Object
    Auto-configuration for the OpenTelemetry Resource.
    • Method Detail

      • configureResource

        public static io.opentelemetry.sdk.resources.Resource configureResource()
        Returns the automatically configured Resource.

        This method will auto-configure the returned Resource using system properties and environment variables.

      • configureResource

        public static io.opentelemetry.sdk.resources.Resource configureResource​(io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties config)
        Returns a Resource automatically initialized through recognized system properties and environment variables.