question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sentry Python SDK does not support Apache Beam 2.33

See original GitHub issue

Environment

self-hosted (onpremise deployment)

Version

1.4.3

Steps to Reproduce

  1. 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
        )
  1. 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
AbhiPrasadcommented, Nov 17, 2021

Fix released as part of SDK version 1.5.0

1reaction
AbhiPrasadcommented, Nov 9, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found