Azure / Azure/data-api-builder

[Bug]: service-name configuration property is ignored

オープン
#3,556 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
2.x telemetry
主要言語
C#
スター
1.5k
フォーク
372
平均マージ
3日 22時間
マージ済み PR(30日)
9

説明

DAB ignores the `runtime.telemetry.open-telemetry.service-name` configuration value and always uses the value from the first startup or a hardcoded default.

## Expected

Changing `service-name` in `dab-config.json` and restarting DAB should update the `service.name` resource attribute in all exported OTEL data.

```json
{
"runtime": {
"telemetry": {
"open-telemetry": {
"enabled": true,
"endpoint": "http://localhost:4318",
"service-name": "dab-otel-test-http",
"exporter-protocol": "httpprotobuf"
}
}
}
}
```

Expected OTEL resource: `service.name: Str(dab-otel-test-http)`

## Actual

Three separate DAB processes (confirmed by 3 unique `service.instance.id` values) were started with different `service-name` values: `dab-otel-test`, `dab-otel-test-http`, and `dab-otel-DISABLED`. All three processes exported data with:

```
-> service.name: Str(dab-otel-test)
```

The `service-name` property appears to be read only once or is overridden by the SDK default/environment.

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

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

調査の方向性

まず、dab-config.json の runtime.telemetry.open-telemetry.service-name 設定を OpenTelemetry リソース設定まで追跡します。異なる service-name 値で DAB を再起動し、エクスポートされたリソース属性を調べて問題を再現します。各プロセスが設定された値と一致する service.name をエクスポートすれば完了です。

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

評価

技術スタック
csharp
領域
backend-api-design, observability
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
55/100

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

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