opentelemetry-demo icon indicating copy to clipboard operation
opentelemetry-demo copied to clipboard

Add peer.service attribute to all service spans

Open rogercoll opened this issue 1 year ago • 2 comments

Feature Request

The peer.service attribute helps to relate traces between services. We are currently using it in some services spans, but it would be great to add it to all spans. The attribute is defined in the semantic conventions: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/attributes-registry/peer.md?plain=1#L15

Describe the solution you'd like:

Add the peer.service attributes to all the spans that make a request to known services.

rogercoll avatar Jun 27 '24 11:06 rogercoll

https://github.com/open-telemetry/oteps/pull/247 (see also)

jmacd avatar Jul 31 '24 21:07 jmacd

Is there another Otep to have this adequately defined? I'm not sure this is something the demo should do, but rather have it handled by the Spec and SDKs instead.

puckpuck avatar Feb 16 '25 04:02 puckpuck