Documentation ¶
Index ¶
- type Tracer
- func (t Tracer[K, V]) TraceBatch(ctx context.Context, keys []K) (context.Context, dataloader.TraceBatchFinishFunc[V])
- func (t Tracer[K, V]) TraceLoad(ctx context.Context, key K) (context.Context, dataloader.TraceLoadFinishFunc[V])
- func (t Tracer[K, V]) TraceLoadMany(ctx context.Context, keys []K) (context.Context, dataloader.TraceLoadManyFinishFunc[V])
- func (t *Tracer[K, V]) Tracer() trace.Tracer
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 (Tracer[K, V]) TraceBatch ¶
func (t Tracer[K, V]) TraceBatch(ctx context.Context, keys []K) (context.Context, dataloader.TraceBatchFinishFunc[V])
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.
Click to show internal directories.
Click to hide internal directories.