Skip to content

trace decorator arguments #2697

Open
Open
@szokeasaurusrex

Description

@szokeasaurusrex

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: SDK CoreDealing with the core of the SDKImprovementPythonSDKTriagedHas been looked at recently during old issue triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions