tracer

package
v0.0.0-...-b235061 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instrumentation

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

Instrumentation is an optional struct if you don't need specific instrumentations.

func NewInstrumentation

func NewInstrumentation(tp trace.TracerProvider) *Instrumentation

type Tracer

type Tracer struct {
	embedded.TracerProvider
}

Tracer provides a wrapper around the OpenTelemetry TracerProvider

func NewTracer

func NewTracer(tracerProvider trace.TracerProvider) *Tracer

func (*Tracer) StartSpan

func (t *Tracer) StartSpan(ctx context.Context, name string, opts ...trace.SpanStartOption) (trace.Span, context.Context)

StartSpan starts a new span with the given name and options.

Jump to

Keyboard shortcuts

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