tracer

package
v1.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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)

func (*Tracer) LogSpan

func (t *Tracer) LogSpan(span opentracing.Span, message string)

func (*Tracer) NewSpan

func (t *Tracer) NewSpan(ctx context.Context) (context.Context, opentracing.Span)

func (*Tracer) SetSpanTags

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

Jump to

Keyboard shortcuts

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