adapter

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyConfig = errors.New("tracer config tree is empty")

ErrEmptyConfig occurs when initialising tracer from an empty config tree

Functions

func Adapters

func Adapters() []string

Adapters returns the list of registered adapters

func New

func New(config config.Tree, o ...tracing.TracerOption) (tracing.Tracer, error)

New creates a new tracing

func Register

func Register(name string, adapter Adapter)

Register makes a tracing adapter available by the provided name. If an adapter is registered twice or if an adapter is nil, it will panic.

Types

type Adapter

type Adapter func(config.Tree, ...tracing.TracerOption) (tracing.Tracer, error)

Adapter returns a new agent initialised with the given config

Directories

Path Synopsis
Package jaeger wraps the Jaeger tracer
Package jaeger wraps the Jaeger tracer

Jump to

Keyboard shortcuts

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