oteldataloader

package module
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithTracer

func WithTracer[K comparable, V any](opts ...Option) dataloader.Option[K, V]

WithTracer creates an new dataloader.Option that instruments OpenTelemetry traces.

Types

type Option

type Option func(*config)

func WithName

func WithName(name string) Option

WithName creates an new Option that indicates data loader's name.

func WithTracerProvider

func WithTracerProvider(tp trace.TracerProvider) Option

WithTracerProvider creates an new Option that indicates the tracer to use given tracer provider.

Jump to

Keyboard shortcuts

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