Commit 0d2da2c
authored
feat(integrations): Send SLO lifecycle metrics to Sentry via SDK (#112839)
## Summary
- Adds a direct `sentry_sdk.metrics.count()` call in
`EventLifecycle.record_event()` so SLO metrics (`started`, `success`,
`halted`, `failure`) are sent to Sentry's metrics product at 100% with
`integration_id` included as a tag.
- The existing `metrics.incr()` call (Datadog) is untouched.
- This bypasses the `DualWriteMetricsBackend` experimental backend which
only samples at 5%, giving us full-fidelity SLO data in Sentry without
the cardinality cost on Datadog.
Companion PR in seer:
https://github.com/getsentry/seer/pull/new/telkins/slo-sentry-metrics
## Test plan
- [ ] Verify metric appears in Sentry Metrics explorer as
`sentry.integrations.slo.started` with `integration_id` tag
- [ ] Confirm existing Datadog metrics are unaffected1 parent f572c9b commit 0d2da2c
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| 171 | + | |
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
| |||
0 commit comments