Commit 0f24530
committed
fix(client-runtime): walk full error chain in readTraceId to find valid trace IDs
Previously readTraceId called findErrorTraceId which returns the first
non-empty traceId in an error chain without regex validation. If that
first traceId failed the SAFE_TRACE_ID check, readTraceId returned
undefined without continuing to search deeper causes.
Now readTraceId walks the chain itself, integrating the SAFE_TRACE_ID
regex into each step so it skips invalid trace IDs and continues looking
for a valid one deeper in the chain.1 parent cea50fa commit 0f24530
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
60 | 58 | | |
61 | 59 | | |
62 | 60 | | |
63 | | - | |
64 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
65 | 74 | | |
66 | 75 | | |
67 | 76 | | |
| |||
0 commit comments