Sentry Python SDK does not support Apache Beam 2.33 · Issue #1231 · getsentry/sentry-python · GitHub
Skip to content

Sentry Python SDK does not support Apache Beam 2.33 #1231

Description

@thaddock

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions