Skip to content

Remove attributes from http.server.active_requests metric to prevent emitting too many - #1060

Merged
alexmojaki merged 2 commits into
mainfrom
alex/active-requests
May 8, 2025
Merged

alexmojaki merged 2 commits into
mainfrom
alex/active-requests

Conversation

@alexmojaki

Copy link
Copy Markdown
Contributor

Removed http.server_name and http.host attributes since for some users they are high cardinality. Since http.server.active_requests is an UpDownCounter and we use AggregationTemporality.CUMULATIVE for it, once an attribute combination is seen, it gets exported every minute even if the value is 0. This can result in a lot of data that most users don't know or care about.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 8, 2025 •

Copy link
Copy Markdown

Deploying logfire-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 12f3be7
Status: ✅  Deploy successful!
Preview URL: https://1ce01656.logfire-docs.pages.dev
Branch Preview URL: https://alex-active-requests.logfire-docs.pages.dev

View logs

@alexmojaki
alexmojaki enabled auto-merge (squash) May 8, 2025 08:54
@alexmojaki
alexmojaki merged commit f0ce29f into main May 8, 2025
@alexmojaki
alexmojaki deleted the alex/active-requests branch May 8, 2025 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant