Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(router): remove default high cardinality attributes #1448

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

Noroth
Copy link
Contributor

@Noroth Noroth commented Dec 16, 2024

Motivation and Context

Certain metric attributes can cause an excessive amount of metric cardinality. In order to add more flexibility, those attributes should be removed from the default set and be configurable.

These changes are not applied when using the default cloud exporter.

Warning

This is a breaking change as by default certain attributes are now omitted from the default set of attributes.
If metric backends make use of those attributes, they need to be configured or the graphs need to be updated accordingly

Checklist

@Noroth Noroth marked this pull request as ready for review December 17, 2024 08:42
@Noroth Noroth changed the title feat(router): remove default high cardinality attributes feat(router)!: remove default high cardinality attributes Dec 17, 2024
@Noroth Noroth force-pushed the ludwig/eng-6132-remove-high-cardinal-fields-from-default-attributes branch from c7bfdd2 to d35b4a9 Compare December 18, 2024 14:52
@StarpTech StarpTech changed the title feat(router)!: remove default high cardinality attributes feat(router): remove default high cardinality attributes Dec 18, 2024
@Noroth Noroth force-pushed the ludwig/eng-6132-remove-high-cardinal-fields-from-default-attributes branch from d35b4a9 to d919d1b Compare December 19, 2024 14:30
Copy link

Dependency Review

✅ No vulnerabilities or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

Copy link

github-actions bot commented Dec 20, 2024

Router image scan passed

✅ No security vulnerabilities found in image:

ghcr.io/wundergraph/cosmo/router:sha-3f2ca44ee513224c1c5eac7f336ab8f0b5cc521b

router-tests/testenv/testenv.go Show resolved Hide resolved
router/core/context.go Outdated Show resolved Hide resolved
router/pkg/metric/meter.go Outdated Show resolved Hide resolved
router/core/context.go Outdated Show resolved Hide resolved
router/core/context.go Outdated Show resolved Hide resolved
router/core/context.go Outdated Show resolved Hide resolved
router/core/context.go Outdated Show resolved Hide resolved
router/core/graphql_handler.go Show resolved Hide resolved
router/core/context.go Outdated Show resolved Hide resolved
@Noroth Noroth requested a review from StarpTech January 2, 2025 10:18
Copy link
Contributor

@StarpTech StarpTech left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants