tracing

package
v0.4.26 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, service string, endpoint string) (*handler, error)

Types

type Event added in v0.4.21

type Event interface{}

type Handler

type Handler interface {
	// Tracer creates a new tracer with the given name.
	Tracer(ctx context.Context, name string) trace.Tracer

	// Span creates a new span with the context.
	Span(ctx context.Context, handler func(context.Context))

	// AddEvent adds a new event with the given name and attributes to the span.
	AddEvent(ctx context.Context, event Event)
}

Handler represents a tracing handler that provides functionality to create tracers, spans and add events.

type KeyValue

type KeyValue struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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