Replace deprecated raven client with sentry-sdk in SentryReporter
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 55/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- python
- Domain
- backend, observability-sre
Research direction
Start with backlash/tracing/reporters/sentry.py and review SentryReporter and RavenNotAvailable, then inspect backlash/frtools.py for the backlash_event flag. Check the deprecated re-export in backlash/trace_errors/sentry.py and the Sentry section of README.rst. Done means crash and slow-request reports use sentry-sdk, the raven import is gone, the flag distinction remains, and the optional dependency is documented.
Written by the indexing model from the issue text.
Description
Goal
Port SentryReporter from the retired raven client to the current
sentry-sdk.
Done when: crash reports and slow-request stack dumps reach Sentry through
sentry-sdk, the raven import is gone, and the optional dependency is
documented for users who want Sentry reporting.
Points that need attention during the port:
raven.base.Client(sentry_dsn)has no direct equivalent;sentry_sdkuses
sentry_sdk.init(dsn=...)plus aClient/Scopemodel.client.captureException(exc_info=..., data=...)and
client.captureMessage(..., stack=...)map tocapture_exception/
capture_eventwith a different payload shape.- The
sentry.interfaces.Httpdict is assembled by hand from
raven.utils.wsgihelpers (get_current_url,get_headers,get_environ),
which do not exist insentry-sdk; the WSGI request data has to be built
another way. - The backlash-specific
backlash_eventflag distinguishes a slow-request
stack dump from a real crash, and that distinction should survive the port.
Why
raven was last released in December 2018, is officially retired in favour of
sentry-sdk, and advertises support only up to Python 3.6. backlash now
supports Python 3.9 through 3.14, so the Sentry reporting feature is
effectively unavailable to current users: nobody can reasonably install the
client it requires.
The import is optional and wrapped in try/except ImportError, so the failure
is silent - SentryReporter simply raises RavenNotAvailable at construction
time. Documented functionality therefore looks supported while being
unreachable in practice.
References
backlash/tracing/reporters/sentry.py(SentryReporter,RavenNotAvailable)backlash/trace_errors/sentry.pyis the deprecated shim re-exporting itREADME.rst(Sentry reporting section)backlash/frtools.py(DumpThread) is the source of thebacklash_eventflag- sentry-sdk migration guide (raven -> sentry-sdk)
- Dominant language
- Python
- Stars
- 13
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TurboGears/backlash
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
TurboGears/backlash#37 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
TurboGears/backlash#36 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
TurboGears/backlash#35 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
TurboGears/backlash#34 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
TurboGears/backlash#29 ·
All issues in TurboGears/backlash
Similar issues
-
area/auth bug comp/agent P3 platform/discord type/security
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
NousResearch/hermes-agent#117848 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100