Skip to content

feat(sentry): upgrade SDK and add data collection config - #1141

Open
palkerecsenyi wants to merge 1 commit into
CERNDocumentServer:feature/sentry-saasfrom
palkerecsenyi:sentry
Open

palkerecsenyi wants to merge 1 commit into
CERNDocumentServer:feature/sentry-saasfrom
palkerecsenyi:sentry

Conversation

@palkerecsenyi

@palkerecsenyi palkerecsenyi commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Closes CERNDocumentServer/cds-rdm#1081

Similar to videos: CERNDocumentServer/cds-videos#2202


This PR is going to a feature branch while we wait to be ready to switch to Sentry SaaS in production. We cannot merge this to master while we're using the old self-hosted Sentry, these changes are only compatible with SaaS Sentry.

Summary by CodeRabbit

  • Updates
    • Error-reporting configuration now enables collection of user information, including client IP details. This information may be transmitted when error reporting is initialized. The change affects what information accompanies error reports; no changes to the visible application experience are described.

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8675c41f-da6b-40f0-998a-fdb5834cf05f

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@palkerecsenyi
palkerecsenyi changed the base branch from master to feature/sentry-saas November 19, 2026 15:13
Comment thread setup.cfg
fuzzywuzzy>=0.18.0
python-ldap>=3.4.0,<3.5.0
invenio-app-ils[lorem,opensearch2]>=9.0.0,<10.0.0
sentry-sdk>=1.45,<2.0.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the docker build is using requirements.pinned.txt (see), does sentry-sdk have to be updated there? or what is the target version, why can this be removed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oh wow good catch thank you, I didn't notice that we were using this file. I think this is acting as a sort of lock file? I will update it.

We added the manual pin here so that we continued using the v1 Sentry SDK which was compatible with the old Sentry server without any custom config needed. invenio-app-ils now depends on invenio-logging which depends on sentry-sdk v2, so we can remove this pin here which will mean we use the v2 SDK instead.

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.

Minimise PII being sent to Sentry

3 participants