rails: add optional Good Job labels and concurrency key to ActiveJob error context
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 54/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- ruby
- Domínio
- backend, observability
Direção de pesquisa
Start by reading the current ActiveJobExtension context and error-data path; the issue explicitly says to use it rather than the removed SentryReporter.sentry_context. Check how that path builds contexts and handles optional job methods, then compare the result with the Good Job identity APIs in the specification. Done means the documented good_job context includes labels and any present legacy concurrency key, with neither field added as a tag.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Summary
When an ActiveJob instance exposes Good Job identity APIs, attach labels and legacy concurrency_key under a good_job context on error (and optionally on the job scope).
Motivation
Official ActiveJob / job-extension reporting already records queue, executions, latency, and messaging fields. It does not record Good Job's concurrency identity (good_job_labels, and on older 4.x good_job_concurrency_key). Those fields help explain why a job was limited or which concurrency cohort it belonged to.
Specification
- Duck-type only:
- if
job.respond_to?(:good_job_labels)->contexts.good_job.labels = Array(job.good_job_labels) - if
job.respond_to?(:good_job_concurrency_key)and value present ->contexts.good_job.concurrency_key
- if
- Do not set these as tags (label cardinality).
- Hook current
ActiveJobExtensioncontext / error-data path (not removedSentryReporter.sentry_context). - No-op when methods are absent.
Guide-level
A failing job that uses Good Job concurrency labels shows contexts.good_job.labels on the event. Hosts on Good Job 5+ without concurrency_key simply omit that field.
Drawbacks / alternatives
- Adopt: small adapter-specific branch in a shared ActiveJob path.
- Do nothing: lose concurrency cohort signal on errors.
- Rejected: tags for labels.
- Rejected: nest only under
extraifcontexts.good_jobis unacceptable; prefer contexts for structured identity.
Prior art
- Official Good Job cron / ActiveJob work: #3199, #3200
- Community
sentry-good_jobContextHelpers (prior art only)
Unresolved questions
- Apply on successful transactions too, or only on captured exceptions?
- Name the context key
good_jobvs extendactive_job?
References
- Linguagem predominante
- Ruby
- Estrelas
- 990
- Forks
- 553
- Merge médio
- 1d 19h
- PRs com merge (30d)
- 31
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de getsentry/sentry-ruby
-
Bug Ruby Waiting for: Product Owner
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
getsentry/sentry-ruby#3228 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Shorter rate limit in the same header replaces a longer oneTalvez já em andamento @sentry-junior assumiu há 5 dias. AbertaBug Ruby
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
getsentry/sentry-ruby#3211 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Events dropped client-side for size are only logged at debug level and not recorded as lostTalvez já em andamento @sentry-junior assumiu há 5 dias. AbertaBug Junior: repro Ruby
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
getsentry/sentry-ruby#3209 · 2 comentários · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Ship fewer files with the gemsTalvez já em andamento @solnic assumiu há 1 dia. AbertaImprovement Ruby Waiting for: Product Owner
getsentry/sentry-ruby#3223 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
active_job breaking change Next Major sentry-delayed_job sentry-rails sentry-resque sentry-sidekiq
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
getsentry/sentry-ruby#3222 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de getsentry/sentry-ruby
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
Mantenedores costumam responder em até 1 dia
-
開発用DockerイメージにPlaywrightのシステム依存を追加するTalvez já em andamento @momocus assumiu hoje. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
sakazuki-org/sakazuki#1453 ·
Mantenedores costumam responder em até 3 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
jenkins-infra/jenkins.io#9615 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtimeTalvez já em andamento @Goldziher assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia