otel

package
v0.0.0-...-73d41d7 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package otel contains functionality for open telemetry.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trace

type Trace struct {
	// contains filtered or unexported fields
}

Trace is a tool to simplify usage of open telemetry.

func GenerateTrace

func GenerateTrace(rndFn func(b []byte) (n int, err error)) (*Trace, error)

GenerateTrace generates traces using provided random function.

func NewTrace

func NewTrace() (*Trace, error)

NewTrace returns new trace.

func (*Trace) TraceHeader

func (t *Trace) TraceHeader() *api.Header

TraceHeader returns the trace HTTP header, which should be sent with an HTTP request to enable open telemetry.

func (*Trace) TraceID

func (t *Trace) TraceID() string

TraceID returns id of the trace root.

Jump to

Keyboard shortcuts

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