jaegerflags

package
v0.0.0-...-fb49ba0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package jaegerflags processes Jaeger-related flags.

Index

Constants

This section is empty.

Variables

View Source
var Default = Jaeger{}

Default contains the default flags. Make a copy of this, do not reuse.

Functions

This section is empty.

Types

type Jaeger

type Jaeger struct {
	Agent string `long:"jaeger-agent" env:"HB_JAEGER_AGENT" description:"jaeger agent address"`
}

Jaeger contains Jaeger tracing flags.

func (*Jaeger) DriverName

func (args *Jaeger) DriverName(ctx context.Context, driverName string, debug bool) string

DriverName returns a SQL driver name that can be used to connect to a database with a traced connection.

func (*Jaeger) Trace

func (args *Jaeger) Trace(ctx context.Context, name string, debug bool) func()

Trace initializes the Jaeger agent as the default global agent. The returned function undoes this change.

Jump to

Keyboard shortcuts

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