Skip to content

Commit d824541

Browse files
authored
fix service.instance.id docs
1 parent 1f6d499 commit d824541

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -815,15 +815,17 @@ Choose the first value found:
815815

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

818+
Choose the first value found:
819+
818820
- `pod.annotation[resource.opentelemetry.io/service.version]`
819821
- `if (cfg[useLabelsForResourceAttributes]) pod.label[app.kubernetes.io/version]`
820822
- `if (contains(container docker image tag, '/') == false) container docker image tag`
821823

822824
#### How `service.instance.id` is calculated
823-
824825

826+
Choose the first value found:
827+
825828
- `pod.annotation[resource.opentelemetry.io/service.instance.id]`
826-
- `if (config[useLabelsForResourceAttributes]) pod.label[app.kubernetes.io/instance]`
827829
- `concat([k8s.namespace.name, k8s.pod.name, k8s.container.name], '.')`
828830

829831
## Contributing and Developing

0 commit comments

Comments
 (0)