tracer

package
v4.50.5 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTraceToLogger added in v4.37.0

func AddTraceToLogger(span tr.Span, logger logger.Provider) logger.Provider

func AddTracerToClient

func AddTracerToClient(httpClient *http.Client, tracerProvider tr.TracerProvider) *http.Client

func CopyToBackground added in v4.49.0

func CopyToBackground(ctx context.Context) context.Context

func StartSpan added in v4.42.0

func StartSpan(ctx context.Context, tracer tr.Tracer, name string, opts ...tr.SpanStartOption) (context.Context, func(options ...tr.SpanEndOption))

Types

type App

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

func New

func New(config Config) (App, error)

func (App) Close

func (a App) Close()

func (App) GetProvider

func (a App) GetProvider() tr.TracerProvider

func (App) GetTracer

func (a App) GetTracer(name string) tr.Tracer

func (App) Middleware

func (a App) Middleware(next http.Handler) http.Handler

type Config

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

func Flags

func Flags(fs *flag.FlagSet, prefix string, overrides ...flags.Override) Config

Jump to

Keyboard shortcuts

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