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

Wrong param in start_span, 'name' should be 'description' #11929

Closed
Rasmus-S-Kristensen opened this issue Nov 25, 2024 · 3 comments
Closed

Wrong param in start_span, 'name' should be 'description' #11929

Rasmus-S-Kristensen opened this issue Nov 25, 2024 · 3 comments

Comments

@Rasmus-S-Kristensen
Copy link

SDK

Python SDK

Description

Page: https://docs.sentry.io/platforms/python/tracing/instrumentation/custom-instrumentation/

Several examples of this:
with sentry_sdk.start_transaction(op="task", name="Eat Pizza"):

This causes a runtime exception: Span.__init__() got an unexpected keyword argument 'name'

Suggested Solution

Update examples

@getsantry
Copy link
Contributor

getsantry bot commented Nov 25, 2024

Assigning to @getsentry/support for routing ⏲️

@szokeasaurusrex
Copy link
Member

@Rasmus-S-Kristensen Please see this section, specifically this note:

Image

Our docs pages document the latest versions of our SDKs, unless otherwise noted. Most likely, you are using an older version of the Sentry SDK which only supports the description parameter.

Since the page is accurate for the latest SDK versions (above 2.15.0), I am closing this issue. Please let us know if you have any other feedback.

@szokeasaurusrex szokeasaurusrex closed this as not planned Won't fix, can't repro, duplicate, stale Nov 25, 2024
@Rasmus-S-Kristensen
Copy link
Author

I stand corrected - thanks for the clarification :)

@github-actions github-actions bot locked and limited conversation to collaborators Dec 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

No branches or pull requests

2 participants