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

trace decorator arguments #2697

Open
szokeasaurusrex opened this issue Feb 1, 2024 · 0 comments
Open

trace decorator arguments #2697

szokeasaurusrex opened this issue Feb 1, 2024 · 0 comments
Labels
Enhancement New feature or request

Comments

@szokeasaurusrex
Copy link
Member

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 szokeasaurusrex added the Enhancement New feature or request label Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant