Commit 57c90d7
feat(tracing): honor SGP_OBS_CORRELATE_BUSINESS at the Correlator construction
Pass the flag into the sgp_obs Correlator that _begin_obs builds for every
adk business span, so the opt-out actually takes effect on the primary
correlation path. Behavior lives in sgp_obs (scaleapi#158071); this is the
construction pass-through.
Version-resilient (_build_correlator): an installed sgp_obs that predates the
`correlate_business` parameter raises TypeError on the kwarg, so we fall back to
the no-arg form and correlation stays always-on rather than dying. The flag
takes effect once the sgp-obs pin is bumped to the release that wired it
(0.5.0). Confirmed against the currently-pinned 0.3.0: fallback, no crash.
Test: env parsing + no-crash fallback + (when supported) the flag reaching the
Correlator instance.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 6122e82 commit 57c90d7
2 files changed
Lines changed: 61 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
52 | 72 | | |
53 | 73 | | |
54 | 74 | | |
| |||
159 | 179 | | |
160 | 180 | | |
161 | 181 | | |
162 | | - | |
| 182 | + | |
163 | 183 | | |
164 | 184 | | |
165 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments