sentry-python icon indicating copy to clipboard operation
sentry-python copied to clipboard

`trace` decorator arguments

Open szokeasaurusrex opened this issue 1 year ago • 0 comments

Problem Statement

The sentry_sdk.trace decorator takes no arguments (besides the function being decorated). This means that the user cannot specify custom arguments to the start_span that the trace decorator internally calls.

Solution Brainstorm

Add an *args and/or a **kwargs parameter to the trace decorator. If the user passes anything, these parameters would be forwarded to the start_span call.

szokeasaurusrex avatar Feb 01 '24 13:02 szokeasaurusrex