# Functions
Binary creates a Binary-typed KeyValue.
Bool creates a Bool-typed KeyValue.
DurationAsMicroseconds converts time.Duration to microseconds, which is the format the Duration field is stored in the Span.
EpochMicrosecondsAsTime converts microseconds since epoch to time.Time value.
Float64 creates a Float64-typed KeyValue.
HashCode calcualtes a FNV-1a hash code for a Hashable object.
Int64 creates a Int64-typed KeyValue.
MicrosecondsAsDuration converts duration in microseconds to time.Duration value.
NewProcess creates a new Process for given serviceName and tags.
SortSpan deep sorts a span: this sorts its tags, logs by timestamp, tags in logs, and tags in process.
SortTrace deep sorts a trace's spans by SpanID.
SortTraces deep sorts a list of traces by TraceID.
SpanIDFromString creates a SpanID from a hexadecimal string.
SpanRefTypeFromString converts a string into SpanRefType enum.
String creates a String-typed KeyValue.
TimeAsEpochMicroseconds converts time.Time to microseconds since epoch, which is the format the StartTime field is stored in the Span.
TraceIDFromString creates a TraceID from a hexadecimal string.
ValueTypeFromString converts a string into ValueType enum.
# Constants
BinaryType indicates the value is binary blob stored as a byte array.
BoolType indicates the value is a Boolean encoded as int64 number 0 or 1.
ChildOf span reference type describes a reference to a parent span that depends on the response from the current (child) span.
Float64Type indicates the value is a float64 number stored as int64.
FollowsFrom span reference type describes a reference to a "parent" span that does not depend on the response from the current (child) span.
Int64Type indicates the value is an int64 number.
StringType indicates the value is a unicode string.
# Structs
DependencyLink shows dependencies between services.
KeyValue describes a tag or a log field that consists of a key and a typed value.
Log describes a micro-log entry that consists of a timestamp and one or more key-value fields.
Process describes an instance of an application or service that emits tracing data.
Span represents a unit of work in an application, such as an RPC, a database call, etc.
SpanRef describes a reference from one span to another.
Trace is a directed acyclic graph of Spans.
TraceID is a random 128bit identifier for a trace.
# Interfaces
Hashable interface is for type that can participate in a hash computation by writing their data into io.Writer, which is usually an instance of hash.Hash.
# Type aliases
Flags is a bit map of flags for a span.
KeyValues is a type alias that exposes convenience functions like Sort, FindByKey.
SpanID is a random 64bit identifier for a span.
SpanRefType describes the type of a span reference.
ValueType describes the type of value contained in a KeyValue struct.