opentelemetry-specification icon indicating copy to clipboard operation
opentelemetry-specification copied to clipboard

Missing Environment Variable for Cardinality Limit

Open ysolomchenko opened this issue 6 months ago • 3 comments

What are you trying to achieve?

I want to configure the Cardinality Limit using an environment variable.

What did you expect to see?

An environment variable that allows setting the limit without changing code/config files directly.

Additional context.

metrics cardinality limits specification

Tip: React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

ysolomchenko avatar Jul 11 '25 09:07 ysolomchenko

I think it is worth mentioning that is is already "supported" by declarative config:

  • https://github.com/open-telemetry/opentelemetry-configuration/blob/d6b127882f41db92b26017c736a52ceb6f2b4451/schema/meter_provider.json#L60

AFAIK there is a preference to NOT add new environment variables probably unless there is be a big demand for it (e.g. a lot of upvotes).

pellared avatar Jul 11 '25 09:07 pellared

@open-telemetry/configuration-approvers PTAL

svrnm avatar Jul 14 '25 09:07 svrnm

@open-telemetry/configuration-approvers PTAL

@pellared is correct. This already exists in declarative config.

With declarative config approaching stability and lots of language implementations coming along nicely, we might want to consider strengthening the moratoirum with explicit language in the spec. But that's a conversation that needs to be decided at the spec level, not the config SIG level.

I recommend closing this issue as "not planned".

jack-berg avatar Dec 04 '25 22:12 jack-berg