types - ActiveState ActiveGo 1.8

Package types

import "github.com/openzipkin/zipkin-go-opentracing/types"

Overview ▾

type TraceID

TraceID is a 128 bit number internally stored as 2x uint64 (high & low).

type TraceID struct {
    High uint64
    Low  uint64

func TraceIDFromHex

func TraceIDFromHex(h string) (t TraceID, err error)

TraceIDFromHex returns the TraceID from a Hex string.

func (TraceID) Empty

func (t TraceID) Empty() bool

Empty returns if TraceID has zero value

func (TraceID) ToHex

func (t TraceID) ToHex() string

ToHex outputs the 128-bit traceID as hex string.