Skip to content

feat(co): add in-product enablement support #13633

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

Merged
merged 2 commits into from
Jul 8, 2025

Conversation

P403n1x87
Copy link
Contributor

@P403n1x87 P403n1x87 commented Jun 10, 2025

We add support for in-product enablement to code origin for spans.

Checklist

  • PR author has checked that all the criteria below are met
  • The PR description includes an overview of the change
  • The PR description articulates the motivation for the change
  • The change includes tests OR the PR description describes a testing strategy
  • The PR description notes risks associated with the change, if any
  • Newly-added code is easy to change
  • The change follows the library release note guidelines
  • The change includes or references documentation updates if necessary
  • Backport labels are set (if applicable)

Reviewer Checklist

  • Reviewer has checked that all the criteria below are met
  • Title is accurate
  • All changes are related to the pull request's stated goal
  • Avoids breaking API changes
  • Testing strategy adequately addresses listed risks
  • Newly-added code is easy to change
  • Release note makes sense to a user of the library
  • If necessary, author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment
  • Backport labels are set in a manner that is consistent with the release branch maintenance policy

@P403n1x87 P403n1x87 added the Dynamic Instrumentation Dynamic Instrumentation/Live Debugger label Jun 10, 2025
@P403n1x87 P403n1x87 requested review from a team as code owners June 10, 2025 10:18
@P403n1x87 P403n1x87 requested review from wantsui and erikayasuda June 10, 2025 10:18
Copy link
Contributor

CODEOWNERS have been resolved as:

releasenotes/notes/feat-co-in-product-enablement-6b70fc52d62721fa.yaml  @DataDog/apm-python
ddtrace/debugging/_products/code_origin/span.py                         @DataDog/debugger-python

Copy link
Contributor

github-actions bot commented Jun 10, 2025

Bootstrap import analysis

Comparison of import times between this PR and base.

Summary

The average import time from this PR is: 278 ± 2 ms.

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

The import time difference between this PR and base is: -0.4 ± 0.09 ms.

Import time breakdown

The following import paths have grown:

ddtrace.auto 0.679 ms (0.24%)
ddtrace.bootstrap.sitecustomize 0.679 ms (0.24%)
ddtrace.bootstrap.preload 0.626 ms (0.23%)
ddtrace.debugging._import 0.068 ms (0.02%)
ddtrace._trace.trace_handlers 0.053 ms (0.02%)

The following import paths have shrunk:

ddtrace.auto 1.525 ms (0.55%)
ddtrace.bootstrap.sitecustomize 0.852 ms (0.31%)
ddtrace.bootstrap.preload 0.728 ms (0.26%)
ddtrace.internal.remoteconfig.client 0.655 ms (0.24%)
ddtrace.debugging._import 0.073 ms (0.03%)
ddtrace.debugging._function.discovery 0.073 ms (0.03%)
ddtrace._trace.trace_handlers 0.039 ms (0.01%)
ddtrace._trace._inferred_proxy 0.039 ms (0.01%)
ddtrace 0.673 ms (0.24%)
ddtrace.internal._unpatched 0.030 ms (0.01%)
json 0.030 ms (0.01%)
json.decoder 0.030 ms (0.01%)
re 0.030 ms (0.01%)
enum 0.030 ms (0.01%)
types 0.030 ms (0.01%)

@pr-commenter
Copy link

pr-commenter bot commented Jun 10, 2025

Benchmarks

Benchmark execution time: 2025-07-07 10:38:20

Comparing candidate commit d861785 in PR branch feat/co-in-product-enablement with baseline commit a8419a4 in branch main.

Found 0 performance improvements and 1 performance regressions! Performance is the same for 524 metrics, 3 unstable metrics.

scenario:iastaspectsospath-ospathsplit_aspect

  • 🟥 execution_time [+915.183ns; +1061.981ns] or [+18.753%; +21.761%]

@tylfin
Copy link
Member

tylfin commented Jun 10, 2025

I think in-product enablement should only enable entry spans so this might be blocked by #13593.

P403n1x87 added 2 commits July 7, 2025 10:53
We add support for in-product enablement to code origin for spans.
@P403n1x87 P403n1x87 force-pushed the feat/co-in-product-enablement branch from 714aeb9 to d861785 Compare July 7, 2025 09:56
@P403n1x87 P403n1x87 requested a review from tylfin July 7, 2025 09:56
@P403n1x87 P403n1x87 merged commit 9893a49 into main Jul 8, 2025
405 checks passed
@P403n1x87 P403n1x87 deleted the feat/co-in-product-enablement branch July 8, 2025 13:30
alyshawang pushed a commit that referenced this pull request Jul 25, 2025
We add support for in-product enablement to code origin for spans.

## Checklist
- [x] PR author has checked that all the criteria below are met
- The PR description includes an overview of the change
- The PR description articulates the motivation for the change
- The change includes tests OR the PR description describes a testing
strategy
- The PR description notes risks associated with the change, if any
- Newly-added code is easy to change
- The change follows the [library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html)
- The change includes or references documentation updates if necessary
- Backport labels are set (if
[applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))

## Reviewer Checklist
- [x] Reviewer has checked that all the criteria below are met 
- Title is accurate
- All changes are related to the pull request's stated goal
- Avoids breaking
[API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces)
changes
- Testing strategy adequately addresses listed risks
- Newly-added code is easy to change
- Release note makes sense to a user of the library
- If necessary, author has acknowledged and discussed the performance
implications of this PR as reported in the benchmarks PR comment
- Backport labels are set in a manner that is consistent with the
[release branch maintenance
policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dynamic Instrumentation Dynamic Instrumentation/Live Debugger
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants