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

Add SQL span data

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

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

評価

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

調査の方向性

まず、ファーストパーティの JDBC および Android SQLite の span instrumentation を特定し、次に Sentry のデータベースに関する規約とリンクされた issue 6019 を確認します。実装前にデータ収集のガイダンスを確認してください。関連する span にサニタイズ済みまたはパラメーター化された db.query.text と、カーディナリティの低い db.query.summary が付与され、該当する場合は対応する派生属性も付与されていれば完了です。

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

説明

Feature Java Platform: Java Spans
Problem Statement

First-party JDBC and Android SQLite spans currently keep the SQL statement only in the span description and attach limited database metadata (db.system and db.name). They do not attach db.query.text or generate db.query.summary.

Solution Brainstorm

Attach database query semantic data to first-party JDBC and Android SQLite spans:

  • db.query.text: the parameterized or SDK-sanitized statement. We should run this through a sanitizer.
  • db.query.summary: a low-cardinality operation/target summary such as UPDATE users.
  • Consider attaching analyzer-derived operation, collection/table, and stored-procedure attributes where they match Sentry conventions.

Check sentry conventions for more (query derived) attributes we can attach.

There's currently no data collection option to gate sanitized/parameterized db.query.text or db.query.summary so we can just attach them. Best double check https://develop.sentry.dev/sdk/foundations/client/data-collection/ when implementing.

Closely related to https://github.com/getsentry/sentry-java/issues/6019

主要言語
Kotlin
スター
1.4k
フォーク
478
平均マージ
2日 20時間
マージ済み PR(30日)
71

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

getsentry/sentry-java のほかの issue

getsentry/sentry-java の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

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

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