Skip to content

Commit

Permalink
fix service.instance.id docs (#3540)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitlinger authored Dec 11, 2024
1 parent 1f6d499 commit a7c2519
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -815,15 +815,17 @@ Choose the first value found:

#### How `service.version` is calculated

Choose the first value found:

- `pod.annotation[resource.opentelemetry.io/service.version]`
- `if (cfg[useLabelsForResourceAttributes]) pod.label[app.kubernetes.io/version]`
- `if (contains(container docker image tag, '/') == false) container docker image tag`

#### How `service.instance.id` is calculated


Choose the first value found:

- `pod.annotation[resource.opentelemetry.io/service.instance.id]`
- `if (config[useLabelsForResourceAttributes]) pod.label[app.kubernetes.io/instance]`
- `concat([k8s.namespace.name, k8s.pod.name, k8s.container.name], '.')`

## Contributing and Developing
Expand Down

0 comments on commit a7c2519

Please sign in to comment.