Skip to content

Update Sentry SDK#11202

Merged
mekarpeles merged 8 commits intointernetarchive:masterfrom
scottbarnes:update-sentry-sdk
Feb 9, 2026
Merged

Update Sentry SDK#11202
mekarpeles merged 8 commits intointernetarchive:masterfrom
scottbarnes:update-sentry-sdk

Conversation

@scottbarnes
Copy link
Copy Markdown
Collaborator

@scottbarnes scottbarnes commented Aug 26, 2025

Update the Sentry SDK to get support for structured logging: https://blog.sentry.io/logs-generally-available/

Closes #

Technical

Testing

Screenshot

Stakeholders

@scottbarnes scottbarnes marked this pull request as draft August 26, 2025 20:47
Checking to see if this causes more fulsome stack trace information to
appear is the Sentry UI.
Maybe this will do some more.
@scottbarnes scottbarnes marked this pull request as ready for review January 17, 2026 04:59
traces_sample_rate=self.config.get('traces_sample_rate', 0.0),
profiles_sample_rate=self.config.get('profiles_sample_rate', 0.0),
release=get_software_version(),
enable_logs=self.config.get('enable_logs', True),
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Note if we default this to true it will run for covers, cron jobs, etc, which we haven't tested. But I'm happy to merge, so long as we're aware this might result in unexpected strain on sentry which we might have to update on-the-fly and flip to false for somethings.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This was just for testing because https://github.com/internetarchive/olsystem/pull/302 wouldn't take effect on testing.

It's a bit buried in the commits, but this is meant to be temporary.

The other problem is that this change seemed to stop logging of everything, including WARNING and ERROR. So I will need to look at it more (I reverted the change in the next commit to verify it was the problem). :(

@mekarpeles mekarpeles self-assigned this Feb 9, 2026
@mekarpeles mekarpeles merged commit 535cf5d into internetarchive:master Feb 9, 2026
4 checks passed
@RayBB RayBB removed the On Testing label Feb 10, 2026
bhardwajparth51 added a commit to bhardwajparth51/openlibrary that referenced this pull request Feb 17, 2026
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.

4 participants