Skip to content

Commit 24e2f60

Browse files
test: update ddtrace_api tests for new package name [backport 3.2] (#13010)
Manual backport of #12998 to 3.2 This change updates the ddtrace_api test suite to use the new package and module names, which changed recently on this pre-1.0 package. ## 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) Co-authored-by: Emmett Butler <[email protected]>
1 parent 77865e6 commit 24e2f60

File tree

30 files changed

+323
-325
lines changed

30 files changed

+323
-325
lines changed

.riot/requirements/668f2f5.txt renamed to .riot/requirements/1a68ae7.txt

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,24 @@
22
# This file is autogenerated by pip-compile with Python 3.9
33
# by the following command:
44
#
5-
# pip-compile --no-annotate .riot/requirements/668f2f5.in
5+
# pip-compile --no-annotate .riot/requirements/1a68ae7.in
66
#
7-
attrs==24.3.0
8-
certifi==2024.12.14
7+
attrs==25.3.0
8+
certifi==2025.1.31
99
charset-normalizer==3.4.1
10-
coverage[toml]==7.6.10
11-
dd-trace-api @ git+https://github.com/DataDog/dd-trace-api-py
10+
coverage[toml]==7.8.0
11+
ddtrace-api==0.0.1
1212
exceptiongroup==1.2.2
1313
hypothesis==6.45.0
1414
idna==3.10
15-
iniconfig==2.0.0
16-
mock==5.1.0
15+
iniconfig==2.1.0
16+
mock==5.2.0
1717
opentracing==2.4.0
1818
packaging==24.2
1919
pluggy==1.5.0
20-
pytest==8.3.4
20+
pytest==8.3.5
2121
pytest-cov==6.0.0
2222
pytest-mock==3.14.0
23-
pyyaml==6.0.2
2423
requests==2.32.3
2524
sortedcontainers==2.4.0
2625
tomli==2.2.1

.riot/requirements/d5f777e.txt renamed to .riot/requirements/1e38375.txt

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,23 @@
22
# This file is autogenerated by pip-compile with Python 3.13
33
# by the following command:
44
#
5-
# pip-compile --no-annotate .riot/requirements/d5f777e.in
5+
# pip-compile --no-annotate .riot/requirements/1e38375.in
66
#
7-
attrs==24.3.0
8-
certifi==2024.12.14
7+
attrs==25.3.0
8+
certifi==2025.1.31
99
charset-normalizer==3.4.1
10-
coverage[toml]==7.6.10
11-
dd-trace-api @ git+https://github.com/DataDog/dd-trace-api-py
10+
coverage[toml]==7.8.0
11+
ddtrace-api==0.0.1
1212
hypothesis==6.45.0
1313
idna==3.10
14-
iniconfig==2.0.0
15-
mock==5.1.0
14+
iniconfig==2.1.0
15+
mock==5.2.0
1616
opentracing==2.4.0
1717
packaging==24.2
1818
pluggy==1.5.0
19-
pytest==8.3.4
19+
pytest==8.3.5
2020
pytest-cov==6.0.0
2121
pytest-mock==3.14.0
22-
pyyaml==6.0.2
2322
requests==2.32.3
2423
sortedcontainers==2.4.0
2524
urllib3==2.3.0

.riot/requirements/1261872.txt renamed to .riot/requirements/785f3f9.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
5-
# pip-compile --no-annotate .riot/requirements/1261872.in
5+
# pip-compile --no-annotate .riot/requirements/785f3f9.in
66
#
7-
attrs==24.3.0
8-
certifi==2024.12.14
7+
attrs==25.3.0
8+
certifi==2025.1.31
99
charset-normalizer==3.4.1
10-
coverage[toml]==7.6.10
11-
dd-trace-api @ git+https://github.com/DataDog/dd-trace-api-py
10+
coverage[toml]==7.8.0
11+
ddtrace-api==0.0.1
1212
hypothesis==6.45.0
1313
idna==3.10
14-
iniconfig==2.0.0
15-
mock==5.1.0
14+
iniconfig==2.1.0
15+
mock==5.2.0
1616
opentracing==2.4.0
1717
packaging==24.2
1818
pluggy==1.5.0
19-
pytest==8.3.4
19+
pytest==8.3.5
2020
pytest-cov==6.0.0
2121
pytest-mock==3.14.0
2222
requests==2.32.3

.riot/requirements/10e65d1.txt renamed to .riot/requirements/862273e.txt

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,24 @@
22
# This file is autogenerated by pip-compile with Python 3.10
33
# by the following command:
44
#
5-
# pip-compile --no-annotate .riot/requirements/10e65d1.in
5+
# pip-compile --no-annotate .riot/requirements/862273e.in
66
#
7-
attrs==24.3.0
8-
certifi==2024.12.14
7+
attrs==25.3.0
8+
certifi==2025.1.31
99
charset-normalizer==3.4.1
10-
coverage[toml]==7.6.10
11-
dd-trace-api @ git+https://github.com/DataDog/dd-trace-api-py
10+
coverage[toml]==7.8.0
11+
ddtrace-api==0.0.1
1212
exceptiongroup==1.2.2
1313
hypothesis==6.45.0
1414
idna==3.10
15-
iniconfig==2.0.0
16-
mock==5.1.0
15+
iniconfig==2.1.0
16+
mock==5.2.0
1717
opentracing==2.4.0
1818
packaging==24.2
1919
pluggy==1.5.0
20-
pytest==8.3.4
20+
pytest==8.3.5
2121
pytest-cov==6.0.0
2222
pytest-mock==3.14.0
23-
pyyaml==6.0.2
2423
requests==2.32.3
2524
sortedcontainers==2.4.0
2625
tomli==2.2.1

.riot/requirements/e49670c.txt renamed to .riot/requirements/a012a26.txt

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,23 @@
22
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
5-
# pip-compile --no-annotate .riot/requirements/e49670c.in
5+
# pip-compile --no-annotate .riot/requirements/a012a26.in
66
#
7-
attrs==24.3.0
8-
certifi==2024.12.14
7+
attrs==25.3.0
8+
certifi==2025.1.31
99
charset-normalizer==3.4.1
10-
coverage[toml]==7.6.10
11-
dd-trace-api @ git+https://github.com/DataDog/dd-trace-api-py
10+
coverage[toml]==7.8.0
11+
ddtrace-api==0.0.1
1212
hypothesis==6.45.0
1313
idna==3.10
14-
iniconfig==2.0.0
15-
mock==5.1.0
14+
iniconfig==2.1.0
15+
mock==5.2.0
1616
opentracing==2.4.0
1717
packaging==24.2
1818
pluggy==1.5.0
19-
pytest==8.3.4
19+
pytest==8.3.5
2020
pytest-cov==6.0.0
2121
pytest-mock==3.14.0
22-
pyyaml==6.0.2
2322
requests==2.32.3
2423
sortedcontainers==2.4.0
2524
urllib3==2.3.0

.riot/requirements/14d1688.txt renamed to .riot/requirements/a25912e.txt

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,24 @@
22
# This file is autogenerated by pip-compile with Python 3.8
33
# by the following command:
44
#
5-
# pip-compile --no-annotate .riot/requirements/14d1688.in
5+
# pip-compile --no-annotate .riot/requirements/a25912e.in
66
#
7-
attrs==24.3.0
8-
certifi==2024.12.14
7+
attrs==25.3.0
8+
certifi==2025.1.31
99
charset-normalizer==3.4.1
1010
coverage[toml]==7.6.1
11-
dd-trace-api @ git+https://github.com/DataDog/dd-trace-api-py
11+
ddtrace-api==0.0.1
1212
exceptiongroup==1.2.2
1313
hypothesis==6.45.0
1414
idna==3.10
15-
iniconfig==2.0.0
16-
mock==5.1.0
15+
iniconfig==2.1.0
16+
mock==5.2.0
1717
opentracing==2.4.0
1818
packaging==24.2
1919
pluggy==1.5.0
20-
pytest==8.3.4
20+
pytest==8.3.5
2121
pytest-cov==5.0.0
2222
pytest-mock==3.14.0
23-
pyyaml==6.0.2
2423
requests==2.32.3
2524
sortedcontainers==2.4.0
2625
tomli==2.2.1

ddtrace/_monkey.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"cassandra": True,
3838
"celery": True,
3939
"consul": True,
40-
"dd_trace_api": True,
40+
"ddtrace_api": True,
4141
"django": True,
4242
"dramatiq": True,
4343
"elasticsearch": True,
@@ -158,7 +158,7 @@
158158
),
159159
}
160160

161-
_NOT_PATCHABLE_VIA_ENVVAR = {"dd_trace_api"}
161+
_NOT_PATCHABLE_VIA_ENVVAR = {"ddtrace_api"}
162162

163163

164164
class PatchException(Exception):

ddtrace/contrib/internal/dd_trace_api/patch.py

Lines changed: 0 additions & 119 deletions
This file was deleted.

0 commit comments

Comments
 (0)