DataDog / dd-trace-rb

Datadog Tracing Ruby Client
https://docs.datadoghq.com/tracing/
Other
299 stars 368 forks source link

Ensure the _dd.p.tid tag has fixed size #3729

Closed marcotc closed 6 days ago

marcotc commented 1 week ago

This PR ensures that the ruby tracer is compliant when populating the span tag _dd.p.tid, making sure that when this tag is serialized as a hexagonal String, it is padded with zeros, always having 16 characters.

This tag contains the high-order bits (most significant bits) of a 128 bit trace ID, and having it as a fixed sized String is a protocol specification across all tracer languages.