CSS App insights - Support prepared statement to receive full SQL query in Java app insights logs
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- java, mysql
調査の方向性
ソースファイルもテストも指定されていません。まず、Java SDK 3.7.1 で MyBatis-Plus のプリペアドステートメントのケースを再現し、データベース依存関係データがどのように取得され、クエリーマスキングがどのように適用されるかを追跡してください。完了の条件は、このシナリオで要求された完全な SQL が App Insights のログに出力され、既存の依存関係テレメトリを壊さないことです。
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem? Please describe.
Customer has been disable mask of SQL query by following this doc https://learn.microsoft.com/en-us/azure/azure-monitor/app/java-standalone-config#java-database-connectivity-query-masking, however in app insights logs, there are still some "?" as below:
SELECT ser_no,dealer_no,invoice_no,invoice_date,supplier_code,delivery_note,delivery_date,vips_order_no,order_ref,jd_ship_no,incoming_filename,is_process,batch_no,supplier_id,og_order_no,arrival_date,app_id,owner_par_code,created_by,created_at,updated_by,updated_at,record_version FROM delivery_order_mas_parse \n \n WHERE (dealer_no IN (?,?,?,?) AND is_process = ? AND delivery_note <> ? AND created_at BETWEEN ? AND ?)
Describe the solution you would like
Customers are using mybatisPlus for SQL prepared statements. they would like to receive full SQL query in App insights logs.
Describe alternatives you have considered
No workaround
Additional context
in the log file, we could find "?" in SQL query:
{"ver":1,"name":"RemoteDependency","time":"2025-07-23T09:35:00.096Z","iKey":"*-c68b1ad74b64","tags":{"ai.internal.sdkVersion":"java:3.7.1","ai.operation.id":"a8f7907f388d52573b91a45d3af42021","ai.cloud.roleInstance":"tw-dmscloud-service-ddf6c44d8-vwm8q","ai.cloud.role":"tw-dmscloud-service"},"data":{"baseType":"RemoteDependencyData","baseData":{"ver":2,"name":"SELECT cyx_repair.delivery_order_mas_parse","duration":"00:00:00.001394","id":"dc72f9272b94137f","data":"SELECT ser_no,dealer_no,invoice_no,invoice_date,supplier_code,delivery_note,delivery_date,vips_order_no,order_ref,jd_ship_no,incoming_filename,is_process,batch_no,supplier_id,og_order_no,arrival_date,app_id,owner_par_code,created_by,created_at,updated_by,updated_at,record_version FROM delivery_order_mas_parse \n \n WHERE (dealer_no IN (?,?,?,?) AND is_process = ? AND delivery_note <> ? AND created_at BETWEEN ? AND ?)","type":"mysql","target":"dms-maxscale-svc.dev-middleware:4006 | cyx_repair","success":true}}}
Java SDK is using the latest version 3.7.1
- 主要言語
- Java
- スター
- 327
- フォーク
- 222
- 平均マージ
- 22時間 34分
- マージ済み PR(30日)
- 14
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/ApplicationInsights-Java のほかの issue
-
microsoft/ApplicationInsights-Java#4851 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
microsoft/ApplicationInsights-Java#4817 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
microsoft/ApplicationInsights-Java#4770 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
microsoft/ApplicationInsights-Java#4769 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
microsoft/ApplicationInsights-Java#4729 · コメント 121 件 ·
microsoft/ApplicationInsights-Java の issue をすべて見る
似ている issue
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
inu-appcenter/memorIN-backend#288 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
frontend maui-pilot pilot-ask question
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
area/plugin
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
kestra-io/plugin-kestra#190 ·