You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "LipuFei (via GitHub)" <gi...@apache.org> on 2026/05/08 08:39:45 UTC
[I] Warnings on deprecated Sentry scope-related functions [airflow]
LipuFei opened a new issue, #66585:
URL: https://github.com/apache/airflow/issues/66585
### Under which category would you file this issue?
Airflow Core
### Apache Airflow version
3.2.1
### What happened and how to reproduce it?
The `sentry_sdk` functions `push_scope()` and `configure_scope()` will be deprecated soon. I'm getting these warning log messages from our Airflow 3.2.1 deployment:
```
[2026-05-08 09:33:01] WARNING - sentry_sdk.push_scope is deprecated and will be removed in the next major version. Please consult our migration guide to learn how to migrate to the new API: https://docs.sentry.io/platforms/python/migration/1.x-to-2.x#scope-pushing category=DeprecationWarning
[2026-05-08 09:33:01] WARNING - sentry_sdk.configure_scope is deprecated and will be removed in the next major version. Please consult our migration guide to learn how to migrate to the new API: https://docs.sentry.io/platforms/python/migration/1.x-to-2.x#scope-configuring category=DeprecationWarning
```
According to the Sentry documentation, the new replacements are roughly `new_scope()` and `get_current_scope()`.
**Links:**
- https://docs.sentry.io/platforms/python/enriching-events/scopes/
- https://docs.sentry.io/platforms/python/migration/1.x-to-2.x#custom-instrumentation
### What you think should happen instead?
These deprecated warnings should be resolved.
### Operating System
_No response_
### Deployment
Official Apache Airflow Helm Chart
### Apache Airflow Provider(s)
_No response_
### Versions of Apache Airflow Providers
_No response_
### Official Helm Chart version
1.20.0
### Kubernetes Version
1.33.10
### Helm Chart configuration
_No response_
### Docker Image customizations
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [x] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Warnings on deprecated Sentry scope-related functions [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed issue #66585: Warnings on deprecated Sentry scope-related functions
URL: https://github.com/apache/airflow/issues/66585
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org