Azure / Azure/data-api-builder

[Bug]: service-name configuration property is ignored

Aperta
#3,556 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
2.x telemetry
Lingua principale
C#
Stelle
1.5k
Fork
370
Merge medio
3g 22h
PR unite (30g)
9

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia tracciando l'impostazione runtime.telemetry.open-telemetry.service-name da dab-config.json fino alla configurazione delle risorse OpenTelemetry. Riproduci il problema riavviando DAB con diversi valori di service-name e ispezionando gli attributi delle risorse esportati. Il lavoro è completato quando ogni processo esporta service.name corrispondente al valore configurato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
backend-api-design, observability
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
55/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.