utils

package
v0.86.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 3 Imported by: 3 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

type TraceID struct {
	Lo uint64
	Hi uint64
}

TraceID is a 128-bit identifier for a trace.

func (TraceID) HexString added in v0.83.0

func (t TraceID) HexString() string

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.

func (TraceID) String

func (t TraceID) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL