Skip to content

fix: update sentry-go to v0.46.2 and replace removed SetExtra API - #45

Open
janwytze wants to merge 1 commit into
johnbellone:mainfrom
janwytze:master
Open

fix: update sentry-go to v0.46.2 and replace removed SetExtra API#45
janwytze wants to merge 1 commit into
johnbellone:mainfrom
janwytze:master

Conversation

@janwytze

@janwytze janwytze commented May 5, 2026

Copy link
Copy Markdown
Contributor

SetExtra was removed in getsentry/sentry-go v0.46.0 (PR #1274). Replace hub.Scope().SetExtra("requestBody", req) with hub.Scope().SetContext("requestBody", sentry.Context{"data": req}).

Closes #44

SetExtra was removed in getsentry/sentry-go v0.46.0 (PR #1274).
Replace hub.Scope().SetExtra("requestBody", req) with
hub.Scope().SetContext("requestBody", sentry.Context{"data": req}).

Closes johnbellone#44
@janwytze

Copy link
Copy Markdown
Contributor Author

@johnbellone Could you review this PR?

@ping-localhost

Copy link
Copy Markdown

Can we please get this merged @johnbellone?

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.

Does not work with latest getsentry/sentry-go (v0.46.0)

2 participants