docs(otel): document metric attribute cardinality control#337
Merged
yassin-berriai merged 2 commits intoJun 13, 2026
Conversation
Add a "Control metric attribute cardinality" section to the OpenTelemetry page covering the callback_settings.otel.attributes include_list/exclude_list filter that caps how many attributes get stamped onto gen_ai.client.* metrics, plus a row for the new attributes field in the OpenTelemetryConfig reference table. Pairs with BerriAI/litellm#30257 (LIT-3600)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…not filterable Reflect the implementation: gen_ai.token.type is a structural token-usage discriminator stamped after filtering, so listing it in include_list or exclude_list is rejected at startup rather than silently ignored. Remove it from the include_list example and the valid-names list, and correct the nuance note.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documents the OTEL metric attribute cardinality control added in BerriAI/litellm#30257 (LIT-3600).
Adds a "Control metric attribute cardinality" section to the OpenTelemetry page explaining how per-request attributes such as hidden_params and the metadata.* fields inflate metric time series and get throttled by backends like Splunk, then shows the callback_settings.otel.attributes block with the mutually-exclusive include_list and exclude_list, copy-pasteable YAML for both modes, the metrics-only scope, and the full list of valid attribute names. Also adds the attributes field to the OpenTelemetryConfig reference table.