mozilla-releng / mozilla-releng/scriptworker-scripts

Consider using Sentry with scriptworkers

Open
#617 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
16
Forks
38
Avg merge
1d 7h
Merged PRs (30d)
14

Description

We use Sentry for most of our long running web apps, mainly for its ability to track tracebacks. We ought to consider doing the same for scriptworkers. According to https://docs.sentry.io/platforms/python/#configure, it's very simple, just:

mport sentry_sdk

sentry_sdk.init(
    dsn="

https://8d0b074c42d54a60afd0f6196259bac6@o1069899.ingest.sentry.io/6262508",

    # Set traces_sample_rate to 1.0 to capture 100%
    # of transactions for performance monitoring.
    # We recommend adjusting this value in production.
    traces_sample_rate=1.0,
)

This would allow us to get tracebacks more easily than it is through the GCP console, maybe allow self serving of alerts, notifications, etc.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the scriptworker startup path, current traceback handling through the GCP console, and the linked Sentry Python configuration documentation. Confirm which scriptworkers should report errors and what alerting or notification behavior is expected; done means the agreed workers report useful tracebacks without disrupting their existing execution.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.