Skip to content

[CONFIG] Implement file configuration #2481

Open
@marcalff

Description

The spec for file configuration is shaping up, opentelemetry-cpp needs to start planning for this.

Spec: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/file-configuration.md

Sub tasks:

  • Define the config file format (yaml)
  • Define the config file schema - experimental, see https://github.com/open-telemetry/opentelemetry-configuration
  • Pick a yaml parser
  • Define C++ classes for the config model
    • Propagators.
    • Traces.
    • Metrics.
    • Logs.
  • Implement environment variables substitution from yaml
  • Populate the C++ config model from yaml
    • Propagators.
    • Traces.
    • Metrics.
    • Logs.
  • Instantiate SDK and exporter objects from the C++ config model
    • Propagators.
    • Traces.
    • Metrics.
    • Logs.
  • User documentation
  • Define a registry for plugin components
    • propagators
    • trace plugins
      • samplers
      • span processors
      • span exporters
    • metric plugins
    • logs plugins
  • Populate config model from yaml, for registered third party components
    • propagators
    • trace plugins
      • samplers
      • span processors
      • span exporters
    • metric plugins
    • logs plugins
  • Instantiate plugins from config model, for registered third party components
    • propagators
    • trace plugins
      • samplers
      • span processors
      • span exporters
    • metric plugins
    • logs plugins
  • Third party documentation (for implementing plugins)

Related issues, found while implementing this feature:

Metadata

Assignees

Labels

StaleenhancementNew feature or requesttriage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions