lightstep

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 5 Imported by: 2

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"`
}

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