otel

package
v7.0.0-...-4e77153 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tracer

type Tracer[K comparable, V any] struct {
	// contains filtered or unexported fields
}

Tracer implements a tracer that can be used with the Open Tracing standard.

func NewTracer

func NewTracer[K comparable, V any](tr trace.Tracer) *Tracer[K, V]

func (Tracer[K, V]) TraceBatch

func (t Tracer[K, V]) TraceBatch(ctx context.Context, keys []K) (context.Context, dataloader.TraceBatchFinishFunc)

TraceBatch will trace a call to dataloader.LoadMany with Open Tracing.

func (Tracer[K, V]) TraceLoad

func (t Tracer[K, V]) TraceLoad(ctx context.Context, key K) (context.Context, dataloader.TraceLoadFinishFunc[V])

TraceLoad will trace a call to dataloader.LoadMany with Open Tracing.

func (Tracer[K, V]) TraceLoadMany

func (t Tracer[K, V]) TraceLoadMany(ctx context.Context, keys []K) (context.Context, dataloader.TraceLoadManyFinishFunc[V])

TraceLoadMany will trace a call to dataloader.LoadMany with Open Tracing.

func (*Tracer[K, V]) Tracer

func (t *Tracer[K, V]) Tracer() trace.Tracer

Jump to

Keyboard shortcuts

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