telemetry

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTracer

func InitTracer(opts *TracerOpts) (func(context.Context) error, error)

func NewSpan

func NewSpan(ctx context.Context, name string) (context.Context, trace.Span)

func WithAttributes

func WithAttributes(span trace.Span, attrs ...AttributeKV)

Types

type AttributeKV

type AttributeKV struct {
	Key   AttributeKey
	Value any
}

AttributeKV is a wrapper for otel attributes KV

type AttributeKey

type AttributeKey string

type TracerOpts

type TracerOpts struct {
	ServiceName  string
	CollectorURL string
	Insecure     bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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