lightstep

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTracer

func NewTracer(ctx context.Context, yamlConfig []byte) (opentracing.Tracer, io.Closer, error)

NewTracer creates a Tracer with the options present in the YAML config.

Types

type Config

type Config struct {
	// AccessToken is the unique API key for your LightStep project. It is
	// available on your account page at https://app.lightstep.com/account.
	AccessToken string `yaml:"access_token"`

	// Collector is the host, port, and plaintext option to use
	// for the collector.
	Collector lightstep.Endpoint `yaml:"collector"`

	// Tags is a string comma-delimited of key value pairs that holds metadata that will be sent to lightstep
	Tags string `yaml:"tags"`
}

Config - YAML configuration.

type Tracer

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

Tracer wraps the Lightstep tracer and the context.

func (*Tracer) Close

func (t *Tracer) Close() error

Close synchronously flushes the Lightstep tracer, then terminates it.

Jump to

Keyboard shortcuts

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