Azure / Azure/data-api-builder

[Bug]: service-name configuration property is ignored

Open
#3,556 0 comments 0 reactions 0 assignees View on GitHub
2.x telemetry
Dominant language
C#
Stars
1.5k
Forks
370
Avg merge
3d 17h
Merged PRs (30d)
8

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.