-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
ref(seer grouping): Add platform
to did_call_seer
metric
#80965
ref(seer grouping): Add platform
to did_call_seer
metric
#80965
Conversation
Codecov ReportAttention: Patch coverage is ✅ All tests successful. No failed tests found.
❌ Your patch status has failed because the patch coverage (78.57%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #80965 +/- ##
==========================================
- Coverage 78.48% 78.47% -0.01%
==========================================
Files 7210 7208 -2
Lines 319545 319520 -25
Branches 43966 43966
==========================================
- Hits 250799 250753 -46
- Misses 62360 62372 +12
- Partials 6386 6395 +9 |
metrics.incr( | ||
"grouping.similarity.did_call_seer", | ||
sample_rate=options.get("seer.similarity.metrics_sample_rate"), | ||
tags={"call_made": called, "blocker": blocker, "platform": event.platform}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since event.platform can be None
, should we make it unknown
if it's None?
This was supplanted by #82442. Closing. |
This adds the event's platform as a tag on the
did_call_seer
metric. In order to streamline things a bit, it also adds a new helper,record_did_call_seer_metric
, to make the actual datadog call. (This saves a lot of repetition of sample rate, tags, etc.)Other than the new tag, the only behavior change is that we've been (in theory) also recording
did_call_seer
during backfill, in cases where the killswitch is enabled. This is a mistake, though a harmless one as we haven't actually had to engage the killswitches in the last few months, so all our current DD data should be legit. Regardless, this fixes that, and only calls the new helper when we have an event (which we only do during ingest, not backfill).Note: Leaving this in draft because it won't typecheck until some other PRs have gone through, and in order to wait for new
did_call_seer
calls to be merged, at which point I'll rebase and include them.