Sentry Python SDK does not support Apache Beam 2.33
See original GitHub issueEnvironment
self-hosted (onpremise
deployment)
Version
1.4.3
Steps to Reproduce
- Add Sentry with BeamIntegration to an Apache Beam 2.33 pipeline, for instance:
sentry_sdk.init(
dsn=os.environ.get("SENTRY_DSN"),
release=os.environ.get("SENTRY_RELEASE", "unidentified release"),
environment=os.environ.get("SENTRY_ENVIRONMENT", "unidentified environment"),
integrations=[BeamIntegration()],
before_send=before_send
)
- Run the pipeline
Expected Result
Expected Pipeline to run successfully, and errors reported to Sentry.
Actual Result
Received this error:
Traceback (most recent call last):
(traceback from our code)
File "/usr/local/lib/python3.7/site-packages/sentry_sdk/hub.py", line 105, in _init
client = Client(*args, **kwargs) # type: ignore
File "/usr/local/lib/python3.7/site-packages/sentry_sdk/client.py", line 86, in __init__
self._init_impl()
File "/usr/local/lib/python3.7/site-packages/sentry_sdk/client.py", line 124, in _init_impl
"auto_enabling_integrations"
File "/usr/local/lib/python3.7/site-packages/sentry_sdk/integrations/__init__.py", line 120, in setup_integrations
type(integration).setup_once()
File "/usr/local/lib/python3.7/site-packages/sentry_sdk/integrations/beam.py", line 49, in setup_once
_wrap_inspect_call(DoFn, func_name),
File "/usr/local/lib/python3.7/site-packages/sentry_sdk/integrations/beam.py", line 83, in _wrap_inspect_call
from apache_beam.typehints.decorators import getfullargspec # type: ignore
ImportError: cannot import name 'getfullargspec' from 'apache_beam.typehints.decorators' (/usr/local/lib/python3.7/site-packages/apache_beam/typehints/decorators.py)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Troubleshooting for Apache Beam | Sentry Documentation
The Python SDK uses thread locals to keep contextual data where it belongs. There are a few situations where this approach fails. Read...
Read more >Apache Beam 2.33.0
Apache Beam is an open source, unified model and set of language-specific SDKs for defining and executing data processing workflows, ...
Read more >Python - Sentry Documentation
Sentry's Python SDK includes powerful hooks that let you get more out of Sentry, and helps you bind data like tags, users, or...
Read more >apache-beam - PyPI
Apache Beam SDK for Python. ... pip install apache-beam ... Apache Beam is a unified programming model for both batch and streaming data...
Read more >sentry Changelog - PyUp.io
Fix integration with Apache Beam 2.32, 2.33 1233 - Remove Python 2.7 support for AWS Lambda layers in craft config 1241 - Refactor...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fix released as part of SDK version
1.5.0
We are blocked by https://github.com/getsentry/craft/issues/322 + failing tests in master (though there is a fix at https://github.com/getsentry/sentry-python/pull/1212). The moment that those two get resolved, we will cut a release and let you know.