Commit b058dee
committed
perf: disable Sentry subprocess instrumentation and tracing
StdlibIntegration monkeypatches subprocess.Popen, adding span/breadcrumb
overhead to every subprocess call. Profiling showed ~342k samples (~8.9%
of total runtime) in sentry_sdk.integrations.stdlib and sentry_sdk.utils.
Disable subprocess instrumentation and set traces/profiles sample rates
to 0 since codeflash is a CLI tool that doesn't need performance tracing.
Error capturing (capture_exception, capture_message, LoggingIntegration)
remains fully functional.1 parent f816502 commit b058dee
1 file changed
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
26 | 22 | | |
27 | 23 | | |
0 commit comments