Skip to content
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

chore(tracer): deprecates patch_all #11918

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Conversation

ZStriker19
Copy link
Contributor

@ZStriker19 ZStriker19 commented Jan 13, 2025

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

Copy link
Contributor

github-actions bot commented Jan 13, 2025

CODEOWNERS have been resolved as:

releasenotes/notes/deprecate_patch_all-244eddcfacb1da14.yaml            @DataDog/apm-python
benchmarks/ddtrace_run/scenario.py                                      @DataDog/apm-core-python
ddtrace/_monkey.py                                                      @DataDog/apm-core-python
ddtrace/bootstrap/preload.py                                            @DataDog/apm-core-python
ddtrace/contrib/_aws_lambda.py                                          @DataDog/apm-core-python @DataDog/apm-idm-python
ddtrace/contrib/_httplib.py                                             @DataDog/apm-core-python @DataDog/apm-idm-python
ddtrace/contrib/_kombu.py                                               @DataDog/apm-core-python @DataDog/apm-idm-python
ddtrace/contrib/_sanic.py                                               @DataDog/apm-core-python @DataDog/apm-idm-python
ddtrace/contrib/_snowflake.py                                           @DataDog/apm-core-python @DataDog/apm-idm-python
ddtrace/contrib/_urllib3.py                                             @DataDog/apm-core-python @DataDog/apm-idm-python
ddtrace/contrib/internal/pytest/plugin.py                               @DataDog/apm-core-python @DataDog/apm-idm-python
docs/api.rst                                                            @DataDog/python-guild
tests/appsec/iast/fixtures/entrypoint/views.py                          @DataDog/asm-python
tests/commands/test_runner.py                                           @DataDog/apm-core-python
tests/contrib/algoliasearch/test.py                                     @DataDog/apm-core-python @DataDog/apm-idm-python
tests/contrib/django/test_django.py                                     @DataDog/apm-core-python @DataDog/apm-idm-python
tests/contrib/psycopg/test_psycopg_snapshot.py                          @DataDog/apm-core-python @DataDog/apm-idm-python
tests/contrib/psycopg2/test_psycopg.py                                  @DataDog/apm-core-python @DataDog/apm-idm-python
tests/contrib/psycopg2/test_psycopg_snapshot.py                         @DataDog/apm-core-python @DataDog/apm-idm-python
tests/contrib/starlette/test_starlette.py                               @DataDog/apm-core-python @DataDog/apm-idm-python
tests/tracer/test_monkey.py                                             @DataDog/apm-sdk-api-python

@ZStriker19 ZStriker19 force-pushed the zachg/deprecate_patch_all branch from 12513d0 to fb33c53 Compare January 13, 2025 18:43
@ZStriker19 ZStriker19 changed the title chore(tracer): deprecate patch_all chore(tracer): deprecates patch_all Jan 13, 2025
@datadog-dd-trace-py-rkomorn
Copy link

datadog-dd-trace-py-rkomorn bot commented Jan 13, 2025

Datadog Report

Branch report: zachg/deprecate_patch_all
Commit report: 5b7f14c
Test service: dd-trace-py

✅ 0 Failed, 130 Passed, 1468 Skipped, 4m 47.85s Total duration (35m 39s time saved)

@ZStriker19 ZStriker19 changed the title chore(tracer): deprecates patch_all chore(tracer): deprecates patch_all [3.0] Jan 13, 2025
@pr-commenter
Copy link

pr-commenter bot commented Jan 13, 2025

Benchmarks

Benchmark execution time: 2025-02-07 16:47:28

Comparing candidate commit 470f077 in PR branch zachg/deprecate_patch_all with baseline commit 122caa6 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 394 metrics, 2 unstable metrics.

@ZStriker19 ZStriker19 changed the title chore(tracer): deprecates patch_all [3.0] chore(tracer): deprecates patch_all Jan 16, 2025
ddtrace/__init__.py Outdated Show resolved Hide resolved
mabdinur added a commit that referenced this pull request Jan 21, 2025
…all integrations [3.0] (#11916)

Requires: [chore: avoids using deprecated modules in tests and log
injection [3.0
prep]](#11835).

Follow up to: #11918

This change internalizes the following functions:
- `ddtrace.contrib.<integration_name>.patch()`
- `ddtrace.contrib.<integration_name>.unpatch()`
- `ddtrace.contrib.<integration_name>.get_version()`

This change also internalizes all integrations that only expose
`patch()`, `unpatch()`, and `get_version()` functions.

## 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)
@datadog-dd-trace-py-rkomorn
Copy link

datadog-dd-trace-py-rkomorn bot commented Jan 30, 2025

Datadog Report

Branch report: zachg/deprecate_patch_all
Commit report: 470f077
Test service: dd-trace-py

✅ 0 Failed, 130 Passed, 1184 Skipped, 3m 18.75s Total duration (25m 29.24s time saved)

@ZStriker19 ZStriker19 force-pushed the zachg/deprecate_patch_all branch from 0fc6915 to 05f315e Compare February 3, 2025 21:16
rn

chore(iast): taint parameter name in post requests in fastapi (#12038)

Continuation of #12009

- [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))

- [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)

still expose patch_all since it's just deprecated

change imports for _patch_all

clean up where it's called in strings

fix up more tests
@ZStriker19 ZStriker19 force-pushed the zachg/deprecate_patch_all branch from 05f315e to 8995916 Compare February 3, 2025 21:24
@ZStriker19 ZStriker19 changed the base branch from main to 3.x-staging February 3, 2025 21:24
@ZStriker19 ZStriker19 marked this pull request as ready for review February 4, 2025 22:49
@ZStriker19 ZStriker19 requested review from a team as code owners February 4, 2025 22:49
Copy link
Collaborator

@wantsui wantsui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 - it's unclear to me what's happening with DD_TRACE_<INTEGRATION>_ENABLED but I don't think that should block this PR as DD_PATCH_MODULES is a working substitute.

@erikayasuda erikayasuda changed the base branch from 3.x-staging to main February 6, 2025 19:12
@ZStriker19 ZStriker19 requested review from a team as code owners February 6, 2025 21:08
@ZStriker19 ZStriker19 force-pushed the zachg/deprecate_patch_all branch from 8a08f67 to efef2eb Compare February 6, 2025 21:11
@ZStriker19 ZStriker19 enabled auto-merge (squash) February 6, 2025 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants