Skip to content

[concepts] Document metric cardinality limits and overflow#10630

Merged
svrnm merged 3 commits into
open-telemetry:mainfrom
cijothomas:docs-cardinality-limits
Jul 2, 2026
Merged

[concepts] Document metric cardinality limits and overflow#10630
svrnm merged 3 commits into
open-telemetry:mainfrom
cijothomas:docs-cardinality-limits

Conversation

@cijothomas

Copy link
Copy Markdown
Member

Adds a Cardinality limits section to the metrics concept page covering: what the cardinality limit is, the default of 2000, the otel.metric.overflow=true overflow data point, the three key properties (no measurements lost, bounded memory, observable overflow), the query-time undercounting consequence (including how a low-cardinality attribute like success=false becomes unreliable once its combination overflows), what the limit does not apply to (Resource and instrumentation scope attributes), and how aggregation temporality affects overflow for synchronous instruments.

Also expands the glossary: tightens the Cardinality entry and adds a Cardinality limit term linking to the new section.

This grows out of discussion on #9971 (cardinality blog post), where the suggestion was made to put this durable conceptual material in the core docs. A follow-up will trim that blog post to link here.

@cijothomas
cijothomas requested a review from a team as a code owner June 30, 2026 11:51
@github-actions github-actions Bot added the CI/infra Repo CI & infrastructure label Jun 30, 2026
@otelbot-docs otelbot-docs Bot added the missing:docs-approval Co-owning SIG has provided approval, PR needs approval from docs maintainer label Jun 30, 2026

@svrnm svrnm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for moving this here, I think it would be great to have one more person who knows metrics well review this but then we are good to go:-)

@otelbot-docs otelbot-docs Bot added ready-to-be-merged This PR is ready to be merged by a maintainer and removed missing:docs-approval Co-owning SIG has provided approval, PR needs approval from docs maintainer labels Jul 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds durable documentation for OpenTelemetry Metrics SDK cardinality capping behavior, including overflow semantics and consequences, and links it from the glossary so readers can find it from both conceptual and definitional entry points.

Changes:

  • Adds a new “Cardinality limits” section to the Metrics concepts page explaining the cap, overflow datapoint semantics, and query-time undercounting behavior.
  • Documents what the cap does not apply to (Resource and instrumentation scope) and how temporality impacts how quickly overflow is reached.
  • Updates the glossary to refine the “Cardinality” entry and add a “Cardinality limit” term that links to the new concept section; updates cspell words for “undercount*”.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
content/en/docs/concepts/signals/metrics.md Adds the new conceptual section explaining cardinality limits, overflow, and temporality implications.
content/en/docs/concepts/glossary.md Refines the “Cardinality” definition and adds a “Cardinality limit” term linking to the new section.
.cspell/en-words.txt Adds “undercount*” spellings used by the new docs.

Comment thread content/en/docs/concepts/signals/metrics.md Outdated
Comment thread content/en/docs/concepts/signals/metrics.md
Comment thread content/en/docs/concepts/signals/metrics.md Outdated
Comment thread content/en/docs/concepts/glossary.md Outdated
@opentelemetry-pr-dashboard

Copy link
Copy Markdown

This PR has review comments. Review suggestions, whether from maintainers or automated reviewers, aren't always correct or required. Please evaluate each comment on its merits, then make sure each thread has a clear outcome.

For example, link to the commit if you applied a suggestion, explain why it wasn't applied, or ask a follow-up question.

Automation flags a PR for human review once every review thread has a reply or is marked as resolved.

Status across open PRs is visible on the pull request dashboard.

@cijothomas
cijothomas force-pushed the docs-cardinality-limits branch from 223d648 to 02cf8c8 Compare July 1, 2026 16:53
@cijothomas

Copy link
Copy Markdown
Member Author

LGTM, thanks for moving this here, I think it would be great to have one more person who knows metrics well review this but then we are good to go:-)

@pellared has reviewed, so I think this can be merged now.

@svrnm
svrnm added this pull request to the merge queue Jul 2, 2026
@svrnm

svrnm commented Jul 2, 2026

Copy link
Copy Markdown
Member

thank you @pellared for review and thank you for writing this @cijothomas !

Merged via the queue into open-telemetry:main with commit 6524d48 Jul 2, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI/infra Repo CI & infrastructure ready-to-be-merged This PR is ready to be merged by a maintainer

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants