Skip to content

Bug2007406 - Add server knobs config to ping_info#3396

Merged
travis79 merged 4 commits intomozilla:mainfrom
travis79:Bug2007406
Apr 2, 2026
Merged

Bug2007406 - Add server knobs config to ping_info#3396
travis79 merged 4 commits intomozilla:mainfrom
travis79:Bug2007406

Conversation

@travis79
Copy link
Copy Markdown
Member

@travis79 travis79 commented Feb 9, 2026

This adds the currently applied server knobs config to all pings in the ping_info section, or omits it if no server knobs config is applied. This should help to calculate effective sampling rates for metrics and pings that are being sampled in the client.

Schema update PR is here: mozilla-services/mozilla-pipeline-schemas#857

@travis79 travis79 marked this pull request as ready for review February 18, 2026 17:58
@travis79 travis79 requested a review from a team as a code owner February 18, 2026 17:58
@travis79 travis79 requested review from chutten and removed request for a team February 18, 2026 17:58
travis79 added 2 commits April 2, 2026 10:15
This adds the currently applied server knobs config to all pings in the ping_info section, or omits it if no server knobs config is applied. This should help to calculate effective sampling rates for metrics and pings that are being sampled in the client.
@travis79 travis79 force-pushed the Bug2007406 branch 3 times, most recently from 35696d1 to f1f634c Compare April 2, 2026 15:37
- Remove clone() by serializing directly from MutexGuard ref
- Add safety comments for all unwrap() calls
- Skip serializing empty maps and null event_threshold to reduce ping size
- Extract shared docs into an include file to avoid duplication
- Fix metric category in docs to glean.internal.metrics
- Add "except metadata.include_info_sections: false" qualifier to docs
- Change test event_threshold to non-default value (41)
- Add test verifying empty fields are omitted from serialized config
- Remove accidentally committed uv.lock
Copy link
Copy Markdown
Contributor

@chutten chutten left a comment

Choose a reason for hiding this comment

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

r+wc

Needs CHANGELOG

@travis79 travis79 enabled auto-merge (squash) April 2, 2026 19:31
@travis79 travis79 merged commit 480af4d into mozilla:main Apr 2, 2026
28 of 29 checks passed
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.

3 participants