Azure / Azure/data-api-builder
[Bug]: `enabled: false` does not stop OTEL data export
- 主要言語
- C#
- スター
- 1.5k
- フォーク
- 370
- 平均マージ
- 3日 22時間
- マージ済み PR(30日)
- 9
説明
Setting `runtime.telemetry.open-telemetry.enabled` to `false` does not prevent DAB from exporting telemetry data to the OTEL collector.
## Expected
With `enabled: false`, DAB should NOT send any logs, metrics, or traces to the configured OTEL endpoint.
```json
{
"runtime": {
"telemetry": {
"open-telemetry": {
"enabled": false,
"endpoint": "http://localhost:4318",
"service-name": "dab-otel-DISABLED",
"exporter-protocol": "httpprotobuf"
}
}
}
}
```
Expected: Zero OTEL signals received by the collector.
## Actual
After restarting both the OTEL collector (clean state) and DAB (fresh process with `enabled: false`), the collector received logs and metrics from DAB. Three unique `service.instance.id` values confirm three separate DAB processes sent data — including the disabled one.
```powershell
docker logs otel-collector 2>&1 |
Select-String "service.instance.id.*Str" |
ForEach-Object { [regex]::Match($_.Line, 'Str\(([^)]+)\)').Groups[1].Value } |
Sort-Object -Unique
# Output:
# 1375741a-02b3-431a-977c-1e4efc207615 (disabled run)
# 7e2759ce-ca81-4060-a0ef-6705d175caf2 (gRPC run)
# 9abe2ae2-bac1-4581-b1e3-740061d786ac (httpprotobuf run)
```
Latest metric timestamps (`01:02:50 UTC`) postdate the disabled DAB startup, confirming fresh data export.
コントリビューションガイド
調査の方向性
runtime.telemetry.open-telemetry.enabled の設定パスから開始し、提供された設定とクリーンな OTEL collector を使用して問題を再現します。テレメトリエクスポーターが初期化される箇所を追跡し、enabled を false に設定した新しい DAB プロセスが、設定されたエンドポイントにログ、メトリクス、トレースを一切生成しないことを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- csharp
- 領域
- backend, observability
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 52/100