open-telemetry / opentelemetry-dotnet

The OpenTelemetry .NET Client
https://opentelemetry.io
Apache License 2.0
3.18k stars 752 forks source link

Add support for OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE env var #3756

Closed pellared closed 1 year ago

pellared commented 1 year ago

Feature Request

Is your feature request related to a problem?

The OTel spec requires to support theOTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE env var.

The exporter MUST configure the default aggregation temporality on the basis of instrument kind using the OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE variable

Describe the solution you'd like:

Add support for OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE env var as defined in the spec.

Describe alternatives you've considered.

None

Additional Context

Reference: https://github.com/open-telemetry/opentelemetry-dotnet-instrumentation/issues/1405

cijothomas commented 1 year ago

Tagging for consideration in 1.6 milestone. The capability is not documented, and an env variable would be easier than doing this in code : https://github.com/open-telemetry/opentelemetry-dotnet/issues/4417