ITADN

Include service.instance.id Resource attribute

#5257Closedherin049 创建于 2026-05-30
feature-request
H
herin049commented
### Is your feature request related to a problem? The OpenTelemetry semantic conventions currently recommends that SDK implementations populate the `service.instance.id` Resource attributes using a v1/v4 UUID: > Implementations, such as SDKs, are recommended to generate a random Version 1 or Version 4 [RFC 4122](https://www.ietf.org/rfc/rfc4122.txt) UUID, but are free to use an inherent unique ID as the source of this value if stability is desirable. In that case, the ID SHOULD be used as source of a UUID Version 5 and SHOULD use the following UUID as the namespace: 4d63009a-8d0f-11ee-aad7-4c796ed8e320. However, currently the SDK does not populate this resource attribute. ### Describe the solution you'd like There are certainly a cardinally concern that we should be weary of when introducing this feature. There is an open question of whether we should add this attribute by default, or if we should have it be opt-in only. I propose that we start by creating a `ServiceInstanceIDResourceDetector` resource detector, which users can opt in to initially. We can decide later if we want this resource detector enabled by default. ### Describe alternatives you've considered N/A ### Additional Context https://opentelemetry.io/docs/specs/semconv/registry/attributes/service/#service-attributes ### Would you like to implement a fix? Yes ### Tip <sub>[React](https://github.blog/news-insights/product-news/add-reactions-to-pull-requests-issues-and-comments/) with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it. Learn more [here](https://opentelemetry.io/community/end-user/issue-participation/).</sub>
关闭于 2026-06-11 8 条评论