Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@sentry_sdk.tracing.trace changes function signature #3177

Closed
antonpirker opened this issue Jun 18, 2024 · 0 comments · Fixed by #3178
Closed

@sentry_sdk.tracing.trace changes function signature #3177

antonpirker opened this issue Jun 18, 2024 · 0 comments · Fixed by #3178
Assignees
Labels
Component: SDK Core Dealing with the core of the SDK Type: Bug Something isn't working

Comments

@antonpirker
Copy link
Member

How do you use Sentry?

Sentry Saas (sentry.io)

Version

all of them

Steps to Reproduce

>>> def f(a, b, c):
...     pass
...
>>> import inspect
>>> inspect.getcallargs(f, 1, 2, 3)
{'a': 1, 'b': 2, 'c': 3}
>>>
>>> import sentry_sdk
>>> @sentry_sdk.tracing.trace
... def f(a, b, c):
...     passs
...
>>> inspect.getcallargs(f, 1, 2, 3)
{'args': (1, 2, 3), 'kwargs': {}}
>>>

Expected Result

Same function signature after applying the decorator.

Actual Result

Changed signature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: SDK Core Dealing with the core of the SDK Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants