Skip to content

docs: Document Transaction and Span kwargs typed dicts#2923

Merged
szokeasaurusrex merged 4 commits into
sentry-sdk-2.0from
szokeasaurusrex/document-start-transaction-kwargs-typed-dicts
Mar 28, 2024
Merged

docs: Document Transaction and Span kwargs typed dicts#2923
szokeasaurusrex merged 4 commits into
sentry-sdk-2.0from
szokeasaurusrex/document-start-transaction-kwargs-typed-dicts

Conversation

@szokeasaurusrex
Copy link
Copy Markdown
Member

@szokeasaurusrex szokeasaurusrex commented Mar 28, 2024

Repeating the doc comments also on the kwargs typed dicts enables better hinting in VSCode. See example below.

Before:
Screenshot 2024-03-28 at 15 16 08

After:
Screenshot 2024-03-28 at 15 14 44

I wish there was a way to do this without simply repeating the documentation both on the classes and in the Kwargs typeddicts, but this is the best way I found.

ref: getsentry/sentry-docs#5082

Copy link
Copy Markdown
Contributor

@antonpirker antonpirker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay!

@szokeasaurusrex szokeasaurusrex merged commit d3d8f1f into sentry-sdk-2.0 Mar 28, 2024
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/document-start-transaction-kwargs-typed-dicts branch March 28, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants