traceutil

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SpanIDToHexOrEmptyString added in v0.65.0

func SpanIDToHexOrEmptyString(id pcommon.SpanID) string

SpanIDToHexOrEmptyString returns a hex string from SpanID. An empty string is returned, if SpanID is empty.

func SpanKindStr

func SpanKindStr(sk ptrace.SpanKind) string

SpanKindStr returns a string representation of the SpanKind as it's defined in the proto. The function provides old behavior of ptrace.SpanKind.String() to support graceful adoption of https://github.com/open-telemetry/opentelemetry-collector/pull/6250.

func StatusCodeStr

func StatusCodeStr(sk ptrace.StatusCode) string

StatusCodeStr returns a string representation of the StatusCode as it's defined in the proto. The function provides old behavior of ptrace.StatusCode.String() to support graceful adoption of https://github.com/open-telemetry/opentelemetry-collector/pull/6250.

func TraceIDToHexOrEmptyString added in v0.65.0

func TraceIDToHexOrEmptyString(id pcommon.TraceID) string

TraceIDToHexOrEmptyString returns a hex string from TraceID. An empty string is returned, if TraceID is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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