Documentation
¶
Overview ¶
Package utils holds utility related to the model
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TraceID ¶
TraceID is a 128-bit identifier for a trace.
func (TraceID) HexString ¶ added in v0.83.0
HexString returns the trace ID as lowercase hex.
When Hi == 0 (the high half was not collected, e.g. dd-trace-go pprof labels expose only the lower 64 bits), Lo is emitted unpadded so the result is byte-exact for backend pattern searches against the uint64 lower half.
When Hi != 0 the full 128-bit ID was collected and the result must match the canonical 16-byte form (e.g. APM's 32-char display): Hi is emitted unpadded but Lo is zero-padded to 16 hex chars so leading zeros in Lo — which are part of the real 128-bit ID — are preserved.