Commit ced7d5c
committed
fix(client): guard against dotless qualified_name in _setup_instrumentation
When a functions_to_trace entry's qualified_name contains no dot, the
rsplit(".", 1) unpacking at line 510 raised ValueError outside the
surrounding try/except, crashing sentry_sdk.init() entirely. Add an
early check that skips the entry with a warning instead.
Fixes #64511 parent 2ce26d1 commit ced7d5c
2 files changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
510 | 518 | | |
511 | 519 | | |
512 | 520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1090 | 1090 | | |
1091 | 1091 | | |
1092 | 1092 | | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
1093 | 1101 | | |
1094 | 1102 | | |
1095 | 1103 | | |
| |||
0 commit comments