-
Notifications
You must be signed in to change notification settings - Fork 423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(trace): generic byte code injection for Python 3.10, 3.11 (AIDM-380) #11669
base: main
Are you sure you want to change the base?
Conversation
Is the more generic |
BenchmarksBenchmark execution time: 2025-01-24 09:18:52 Comparing candidate commit 1f84078 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 394 metrics, 2 unstable metrics. |
9885e3c
to
bce9590
Compare
|
On a large number of modules to be instrumented, using Following up in DM with more details. |
79eb412
to
6eecda5
Compare
…og/dd-trace-py into labbati/generic-bytecode-injection
Co-authored-by: Luca Abbati <[email protected]>
…og/dd-trace-py into labbati/generic-bytecode-injection
The current code we have in
ddtrace/internal/coverage
to inject invocation of callback presents the following limitations:At the same time, we need to capability to inject at some desired code location the invocation of a callback for a new functionality that we are currently adding: automatic reporting of handled exceptions. The only thing that really changes, in this case, is the selection of the injection points.
This PR does (for py 3.10 and 3.11):
ddtrace.internal.coverage
to a more genericddtrace.internal.bytecode_injection
.Checklist
Reviewer Checklist