Add Beholder default metric filter views#2238
Draft
pkcll wants to merge 3 commits into
Draft
Conversation
Contributor
✅ API Diff Results -
|
9eaf479 to
a7dbabb
Compare
b3a19ee to
ee3c5d6
Compare
Introduce metricviews.DefaultViews() with an empty denylist by default, Config.metricViews/metricOptions methods, and CL_TELEMETRY_METRIC_VIEWS_DISABLED wiring through loop env and server. Caller views precede defaults so histogram-bucket overrides are not shadowed. Co-authored-by: Cursor <cursoragent@cursor.com> # Conflicts: # pkg/beholder/meter_provider.go
ee3c5d6 to
ed2bce5
Compare
Expose MetricViewsAttributeBlacklist on beholder.Config and wire CL_TELEMETRY_METRIC_VIEWS_ATTRIBUTE_BLACKLIST through loop env and server. DefaultViews builds a global deny view when keys are configured.
Wire MetricViewsAttributeBlacklist through beholder.Config and CL_TELEMETRY_METRIC_VIEWS_ATTRIBUTE_BLACKLIST via loop env/server. DefaultViews(blacklist) registers a global deny view when non-empty; empty by default so no attributes are stripped until configured.
Draft
3 tasks
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.
Summary
pkg/beholder/metricviewswith deny-onlyDefaultViews(blacklist)— empty blacklist by default (no attributes stripped until configured).MetricViewsAttributeBlacklistonbeholder.Config, wired viaCL_TELEMETRY_METRIC_VIEWS_ATTRIBUTE_BLACKLIST(comma-separated) through loopEnvConfigandserver.go.Config.metricViews()and zero-argConfig.metricOptions(); caller views precede defaults so histogram-bucket overrides are not shadowed.CL_TELEMETRY_METRIC_VIEWS_DISABLEDas an emergency disable flag.Stacks on #2225 (cardinality limit). Merge limit PR first, then rebase this onto
main.Test plan
go test ./pkg/beholder/... ./pkg/loop