tracing

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDuration

func FormatDuration(startNano, endNano string) string

FormatDuration computes the duration from two nanosecond Unix timestamps and returns a human-readable string.

func FormatSpanLinks(links []dash0api.SpanLink) string

FormatSpanLinks formats outgoing span links as a semicolon-separated string of "traceId:spanId" pairs. Dash0ForwardLinks (incoming links from other spans) are intentionally excluded.

func FormatTimeDuration

func FormatTimeDuration(d time.Duration) string

FormatTimeDuration formats a time.Duration as a human-readable string.

func NewSpansCmd

func NewSpansCmd() *cobra.Command

NewSpansCmd creates a new spans command.

func NewTracesCmd

func NewTracesCmd() *cobra.Command

NewTracesCmd creates a new traces command.

func ParseDuration

func ParseDuration(s string) (time.Duration, error)

ParseDuration parses a human-readable duration string like "100ms", "1.5s", "2m".

func ParseSpanKind

func ParseSpanKind(s string) (int32, error)

ParseSpanKind parses a span kind string (case-insensitive) into its numeric value. UNSPECIFIED is not accepted because it is not a valid kind for user-created spans.

func ParseSpanStatusCode

func ParseSpanStatusCode(s string) (int32, error)

ParseSpanStatusCode parses a status code string (case-insensitive) into its numeric value.

func SpanKindString

func SpanKindString(kind int32) string

SpanKindString maps a numeric span kind to its string representation.

func SpanStatusString

func SpanStatusString(code int32) string

SpanStatusString maps a numeric status code to its string representation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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