tracer

package
v1.3.12 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogSpan added in v1.2.1

func LogSpan(span opentracing.Span, message string)

func NewSpan added in v1.2.1

func NewSpan(ctx context.Context) (context.Context, opentracing.Span, string)

func SetSpanTags added in v1.2.1

func SetSpanTags(span opentracing.Span, tags map[string]string)

Types

type Auth

type Auth struct {
	// Username is the username for the Jaeger agent.
	Username string
	// Password is the password for the Jaeger agent.
	Password string
}

type Config

type Config struct {
	// ServiceName is the name of the service.
	ServiceName string `validate:"required"`
	// URl is the URL of the Jaeger agent.
	URL  string `validate:"required"`
	Auth *Auth
}

type Tracer

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

func NewTracer

func NewTracer(cfg Config) (*Tracer, func() error, error)

Jump to

Keyboard shortcuts

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