tracing

package
v0.0.0-...-c9f981a Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(ctx context.Context) (trace.SpanContext, bool)

Extract is a wrapper of opentelemetry's SpanFromContext that also wraps traceID validation.

func Inject

func Inject(ctx context.Context, data []byte) context.Context

Inject is an best effort to load the protobuf encoded reflexpb.Trace into the context.

func Marshal

func Marshal(span trace.SpanContext) ([]byte, error)

Marshal encodes the opentelemetry SpanContext into a reflex proto and encodes it using a proto encoder for storage in the database.

func Unmarshal

func Unmarshal(data []byte) (trace.SpanContext, error)

Unmarshal decodes the protobuf byte slice and reconstructs it into an opentelemetry SpanContext

Types

This section is empty.

Jump to

Keyboard shortcuts

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