tracing

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package tracing wraps opentracing api

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Adapters

func Adapters() []string

func RegisterAdapterFactory

func RegisterAdapterFactory(name string, factory AdapterFactory)

Types

type Adapter

type Adapter interface {
	NewTracer(service string, cfg config.TracingConfig) (opentracing.Tracer, error)
	Close() error
}

func GetAdapter

func GetAdapter(name string) (Adapter, error)

TODO: future, adapter factory functions should allow passing config

type AdapterFactory

type AdapterFactory func() Adapter

type Manager

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

func NewManager

func NewManager(config config.TracingConfig) (*Manager, error)

func (*Manager) Tracer

func (mgr *Manager) Tracer(service string) (opentracing.Tracer, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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