Commit 342140e
fix(tracing): align _correlate_business to opt-out semantics (default on)
Match sgp_obs env_off: disable ONLY on an explicit {0,false,no,off}; unset,
empty, or an unrecognized value stays ON. Adds "off" to the token set and stops
treating an unrecognized value as True-by-coincidence — now it's True by rule
(opt-out), so a typo can't silently drop correlation. Test covers off-tokens +
empty/typo staying on.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 57c90d7 commit 342140e
2 files changed
Lines changed: 14 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | | - | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | | - | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
0 commit comments