tracer

package
v4.62.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 16 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 StartSpan added in v4.42.0

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

Types

type App

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

func New

func New(ctx context.Context, config Config) (App, error)

func (App) Close

func (a App) Close(ctx context.Context)

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