Repository navigation
enhancement(sample transform): Add group tag to discarded event metrics - #26404
ArunPiduguDD wants to merge 23 commits into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 105b3c1e61
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6e0a1048dc
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8d821fa26b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Allow sample transforms to opt in to grouping discarded-event metrics by rendered group value. Environment: Datadog workspace Co-Authored-By: Pi OpenAI GPT-5.6 <noreply@pi.dev>
Apply the parent instrumentation fix and emit the standard dropped-event log for sample metrics. Environment: Datadog workspace Co-Authored-By: Pi OpenAI GPT-5.6 <noreply@pi.dev>
Keep the established internal event name and clarify the group tag cardinality tradeoff. Environment: Datadog workspace Co-Authored-By: Pi OpenAI GPT-5.6 Sol <noreply@pi.dev>
Preserve dropped-event logging and avoid group-key cloning when the tag is disabled. Environment: Datadog workspace Co-Authored-By: Pi OpenAI GPT-5.6 Sol <noreply@pi.dev>
8d821fa to
beb7e27
Compare
…o arun.pidugu/sample-discarded-events-tag-group-by
Carry the optional group into the internal event and create the fallback only for tagged metrics. Environment: Datadog workspace Co-Authored-By: Pi OpenAI GPT-5.6 Sol <noreply@pi.dev>
…o arun.pidugu/sample-discarded-events-tag-group-by
…o arun.pidugu/sample-discarded-events-tag-group-by
…o arun.pidugu/sample-discarded-events-tag-group-by
Delegate sample discard logging and metrics to the shared helper while constructing the optional group label only when enabled. Environment: Datadog workspace Co-Authored-By: Pi OpenAI GPT-5.6 Sol <noreply@pi.dev>
Bring the parent helper refactor and tests into the sample branch without rewriting published history. Environment: Datadog workspace Co-Authored-By: Pi ai-gw-openai/openai/gpt-6-astra <noreply@pi.dev>
…o arun.pidugu/sample-discarded-events-tag-group-by
Borrow sampling group keys through the decision, move them only into discarded-event metrics, and document the literal None fallback. Environment: Datadog workspace Co-Authored-By: Pi ai-gw-openai/openai/gpt-5.6-sol <noreply@pi.dev>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2649cc65ca
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…o arun.pidugu/sample-discarded-events-tag-group-by
Pass sample groups through the narrowed shared helper without exposing arbitrary metric labels. Environment: Datadog workspace Co-Authored-By: Pi ai-gw-openai/openai/gpt-5.6-sol <noreply@pi.dev>
…o arun.pidugu/sample-discarded-events-tag-group-by
Describe the optional group tag and None fallback directly in the configuration and generated docs. Environment: Datadog workspace Co-Authored-By: Pi ai-gw-openai/openai/gpt-5.6-sol <noreply@pi.dev>
Keep the group clone opt-in for discarded-event metrics without refactoring sampling state management. Environment: Datadog workspace Co-Authored-By: Pi ai-gw-openai/openai/gpt-6-astra <noreply@pi.dev>
Keep the sample branch aligned with the shared-helper cleanup without rewriting published commits. Environment: Datadog workspace Co-Authored-By: Pi ai-gw-openai/openai/gpt-6-astra <noreply@pi.dev>
Make the internal metric configuration an explicit constructor dependency. Environment: Datadog workspace Co-Authored-By: Pi OpenAI GPT-5.6 <noreply@pi.dev>
Include the OPW Vector baseline while preserving the published stack history. Environment: Datadog workspace Co-Authored-By: Pi OpenAI GPT-5.6 <noreply@pi.dev>
Keep both group-tag changes on the current upstream baseline. Environment: Datadog workspace
Keep grouped dropped-event validation consistent across the stack. Environment: Datadog workspace
Summary
Add an opt-in
internal_metrics.include_group_tagsetting to the sample transform. When enabled,component_discarded_events_totalincludes the renderedgroup_byvalue as agrouptag, withNoneused for the default group.This PR is stacked on #26402.
References
Vector configuration
How did you test this PR?
make test FEATURES="transforms-sample" SCOPE="sample"make fmtmake check-fmtmake check-markdownmake check-changelog-fragmentsmake generate-docscargo clippy --workspace --all-targets --no-default-features --features transforms-sample -- -A clippy::unused_asyncThe standard Clippy command is blocked by an unrelated existing
clippy::unused_asyncfinding insrc/test_util/http.rsunder Rust 1.96.Does this PR include user facing changes?
no-changeloglabel to this PR.Contributor Guidelines
@vectordotdev/vectorto reach out to us regarding this PR.git merge origin masterandgit push.