Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Ability to mark some database exceptions as not errors

オープン
#12,838 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java
領域
observability

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Java
スター
736
フォーク
364
平均マージ
3日 8時間
マージ済み PR(30日)
208

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DataDog/dd-trace-java のほかの issue

DataDog/dd-trace-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。