Skip to content

otelconf: add support for OTEL_EXPERIMENTAL_CONFIG_FILE variable #8059

@codeboten

Description

@codeboten

Component

Config

Problem Statement

As per the spec:

Setting the OTEL_EXPERIMENTAL_CONFIG_FILE environment variable (for languages that support it) provides users a convenient way to initialize OpenTelemetry components without needing to learn language-specific configuration details or use a large number of environment variables. The pattern for accessing the configured components and installing into instrumentation will vary by language. For example, the usage in Java might resemble:

https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk.md#via-otel_experimental_config_file

Proposed Solution

Open to suggestions of how this should be implemented to align w/ the rest of the Go SDK implementation

Alternatives

No response

Prior Art

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: file-configRelated to file-based configurationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions