Thanks to visit codestin.com
Credit goes to github.com

Skip to content

@ai_track decorator hides mypy errors and blocks propagation of errors in traces #4663

@ahoussemand

Description

@ahoussemand

How do you use Sentry?

Sentry Saas (sentry.io)

Version

2.29.1

Steps to Reproduce

  1. Add a @ai_track decorator to a function
  2. Call that function with an unexpected argument
  3. Run mypy to check the code
  4. Run the code to see the error in sentry

Expected Result

mypy should return the following error:
error: Unexpected keyword argument "keyword" for "function" [call-arg]

Sentry traces should show the error

Actual Result

mypy returns
'Success: no issues found'

Sentry only raises the error within the parent transaction and not in the main traces page.

Metadata

Metadata

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions