Skip to content

Commit f3094f0

Browse files
committed
Merge branch 'major/3.0' into ivana/major/drop-3.6
2 parents 9a74172 + 79fef22 commit f3094f0

122 files changed

Lines changed: 7721 additions & 11567 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/test-integrations-misc.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,10 @@ jobs:
4141
run: |
4242
set -x # print commands that are executed
4343
./scripts/runtox.sh "py${{ matrix.python-version }}-loguru"
44-
- name: Test opentelemetry
45-
run: |
46-
set -x # print commands that are executed
47-
./scripts/runtox.sh "py${{ matrix.python-version }}-opentelemetry"
4844
- name: Test otlp
4945
run: |
5046
set -x # print commands that are executed
5147
./scripts/runtox.sh "py${{ matrix.python-version }}-otlp"
52-
- name: Test potel
53-
run: |
54-
set -x # print commands that are executed
55-
./scripts/runtox.sh "py${{ matrix.python-version }}-potel"
5648
- name: Test pure_eval
5749
run: |
5850
set -x # print commands that are executed

MIGRATION_GUIDE.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,36 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh
88

99
## Changed
1010

11+
- The Strawberry integration won't auto-enable anymore if we detect `strawberry-graphql` is installed. Set it up manually, setting the `async_execution` integration option to either `True` or `False` depending on if your app is async or sync.
12+
13+
```python
14+
from sentry_sdk.integrations.strawberry import StrawberryIntegration
15+
16+
sentry_sdk.init(
17+
integrations=[
18+
StrawberryIntegration(async_execution=True), # or False
19+
],
20+
...
21+
)
22+
```
23+
1124
- The UnraisableHookIntegration is now enabled by default.
1225
- We now don't suppress chained exceptions in the ASGI and asyncio integrations by default. The related `suppress_asgi_chained_exceptions` experimental option was removed.
1326

1427
## Removed
1528

1629
- The SDK no longer supports Python 3.6. The oldest supported version is now 3.7.
30+
- The `enable_tracing` option was removed. Use `traces_sample_rate=1.0` instead.
31+
- The deprecated `push_scope` and `configure_scope` APIs have been removed. Use `with new_scope():` to push a new scope and `scope = get_current_scope()` to retrieve the current scope instead.
32+
- Transaction profiling and related code was removed.
33+
- Removed the deprecated Hub class and all uses of hub throughout the SDK in arguments, options, etc. Use a scope instead.
34+
- The `SentrySpanProcessor`, `SentryPropagator`, `instrumenter`, and associated OpenTelemetry compatibility code was removed along with the `opentelemetry` extra and the `SentryPropagator` entrypoint. Use the `OTLPIntegration` instead.
35+
- Removed the `auto_session_tracing` decorator. Use `track_session` instead.
36+
- The deprecated `set_measurement` API was removed.
37+
- The experimental option `otel_powered_performance` has been removed together with the associated `OpenTelemetryIntegration` and `opentelemetry-experimental` extra.
38+
- A number of extras (installable via `sentry-sdk[extra-name]`) has been removed. Use the base package (`sentry-sdk`) instead; there is no difference in functionality. The following extras have been removed: `aiohttp`, `anthropic`, `arq`, `asyncpg`, `beam`, `bottle`, `celery`, `celery-redbeat`, `chalice`, `clickhouse-driver`, `django`, `falcon`, `fastapi`, `google-genai`, `httpx`, `huey`, `huggingface_hub`, `langchain`, `langgraph`, `launchdarkly`, `litellm`, `litestar`, `loguru`, `mcp`, `openai`, `openfeature`, `pydantic_ai`, `pymongo`, `pyspark`, `rq`, `sanic`, `sqlalchemy`, `starlette`, `starlite`, `statsig`, `tornado`, `unleash`.
39+
- The `failed_request_status_codes` integration option now only supports a set of integers as input. Lists of integers or containers of integers are no longer supported.
40+
- The deprecated `propagate_traces` option has been removed. Use `trace_propagation_targets` instead, which gives you more power over trace propagation. Note that only the top-level `init` option was removed; the `propagate_traces` option of the Celery integration remains available.
1741

1842
## Deprecated
1943

docs/api.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,4 @@ Client Management
6262
Managing Scope (advanced)
6363
=========================
6464

65-
.. autofunction:: sentry_sdk.api.configure_scope
66-
.. autofunction:: sentry_sdk.api.push_scope
67-
6865
.. autofunction:: sentry_sdk.api.new_scope

docs/apidocs.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
API Docs
33
========
44

5-
.. autoclass:: sentry_sdk.Hub
6-
:members:
7-
85
.. autoclass:: sentry_sdk.Scope
96
:members:
107

@@ -32,9 +29,6 @@ API Docs
3229
.. autoclass:: sentry_sdk.tracing.Span
3330
:members:
3431

35-
.. autoclass:: sentry_sdk.profiler.transaction_profiler.Profile
36-
:members:
37-
3832
.. autoclass:: sentry_sdk.session.Session
3933
:members:
4034

scripts/populate_tox/config.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@
231231
"huey": {
232232
"package": "huey",
233233
"num_versions": 2,
234+
"python": {
235+
">=3.3.0": ">3.7",
236+
},
234237
},
235238
"huggingface_hub": {
236239
"package": "huggingface_hub",
@@ -297,13 +300,16 @@
297300
"mcp": {
298301
"package": "mcp",
299302
"deps": {
300-
"*": ["pytest-asyncio"],
303+
"*": ["pytest-asyncio", "httpx"],
301304
},
302305
},
303306
"fastmcp": {
304307
"package": "fastmcp",
305308
"deps": {
306-
"*": ["pytest-asyncio"],
309+
"*": ["pytest-asyncio", "httpx"],
310+
"<0.3.0": [
311+
"mcp<2"
312+
], # Pin added to package in https://github.com/PrefectHQ/fastmcp/commit/5f58621f8b7c7ba257c9837333b09b391f868456#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
307313
},
308314
},
309315
"openai-base": {

scripts/populate_tox/package_dependencies.jsonl

Lines changed: 255 additions & 106 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/populate_tox/populate_tox.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,7 @@
6969
"shadowed_module",
7070
"gcp",
7171
"gevent",
72-
"opentelemetry",
7372
"otlp",
74-
"potel",
7573
}
7674

7775
# Free-threading is experimentally supported in 3.13, and officially supported in 3.14.

0 commit comments

Comments
 (0)