Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Ability to mark some database exceptions as not errors

Aperta
#12,838 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java
Ambito
observability

Direzione di ricerca

Start by reading the JDBC instrumentation and TraceInterceptor APIs to see how exceptions are marked on instrumentation generated spans and what span relationship information the interceptor exposes. The issue names no files or tests, so first locate those entry points and check for existing exception suppression options. Done means callers can conditionally prevent expected exceptions from being reported as errors without reconstructing the span hierarchy.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

type: feature request
Library Name

jdbc

Library Version(s)

17

Describe the feature you'd like

I would like ability to conditionally suppress errors on instrumentation-generated spans.

Is your feature request related to a problem?

DataDog JDBC instrumentation reports all exceptions as errors.

This quite problematic because some exceptions might be expected (such as serialization errors up until final retry), yet there is no way to mark them as such, and so they create a lot of noise that makes error monitors useless.

Describe alternatives you've considered

The only workaround I know is registering TraceInterceptor and clear the errors from there.

To do it conditionally I need to somehow communicate decision to interceptor.

I can set error.suppress=true on application-controlled parent span of db span but unfortunately TraceInterceptor does not expose parent/child relationship between spans unless I do a lot of casts to io.opentracing.Span and DDSpanContext and reconstruct hierarchy from there (which can become expensive).

Additional context

No response

Lingua principale
Java
Stelle
736
Fork
364
Merge medio
3g 9h
PR unite (30g)
219

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DataDog/dd-trace-java

Tutte le issue di DataDog/dd-trace-java

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.