Skip to content

Conversation

@P403n1x87
Copy link
Contributor

Backport 4d1b76c from #15643 to 3.19.

Description

We fix the implementation of the isDefined operation to accept an arbitrary expression that is evaluated within the scope of a proxy function. This is used to validate whether a certain expression would evaluate to a value without errors.

We fix the implementation of the isDefined operation to accept an
arbitrary expression that is evaluated within the scope of a proxy
function. This is used to validate whether a certain expression would
evaluate to a value without errors.

(cherry picked from commit 4d1b76c)
@P403n1x87 P403n1x87 requested review from a team as code owners December 18, 2025 11:01
@P403n1x87 P403n1x87 added Dynamic Instrumentation Dynamic Instrumentation/Live Debugger backport 3.19 backport 4.1 labels Dec 18, 2025
@P403n1x87 P403n1x87 self-assigned this Dec 18, 2025
@P403n1x87 P403n1x87 enabled auto-merge (squash) December 18, 2025 11:01
@github-actions
Copy link
Contributor

CODEOWNERS have been resolved as:

releasenotes/notes/fix-debugger-el-isdefined-1c6b39c719c8888c.yaml      @DataDog/apm-python
ddtrace/debugging/_expressions.py                                       @DataDog/debugger-python
tests/debugging/test_expressions.py                                     @DataDog/debugger-python

@github-actions
Copy link
Contributor

Bootstrap import analysis

Comparison of import times between this PR and base.

Summary

The average import time from this PR is: 245 ± 3 ms.

The average import time from base is: 247 ± 2 ms.

The import time difference between this PR and base is: -1.4 ± 0.1 ms.

Import time breakdown

The following import paths have shrunk:

ddtrace.auto 1.918 ms (0.78%)
ddtrace.bootstrap.sitecustomize 1.239 ms (0.50%)
ddtrace.bootstrap.preload 1.239 ms (0.50%)
ddtrace.internal.remoteconfig.client 0.612 ms (0.25%)
ddtrace 0.679 ms (0.28%)
ddtrace.internal._unpatched 0.029 ms (0.01%)
json 0.029 ms (0.01%)
json.decoder 0.029 ms (0.01%)
re 0.029 ms (0.01%)
enum 0.029 ms (0.01%)
types 0.029 ms (0.01%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 3.19 backport 4.1 Dynamic Instrumentation Dynamic Instrumentation/Live Debugger

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants