Skip to content

@sentry_sdk.tracing.trace changes function signature #3177

@antonpirker

Description

@antonpirker

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions