jaeger

package
Version: v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterExporter added in v0.0.2

func RegisterExporter(ctx context.Context, conf Config) (func(), error)

RegisterExporter add jaeger as trace exporter

Types

type Config

type Config struct {
	// CollectorEndpoint is the Jaeger HTTP Thrift endpoint.
	// For example, http://localhost:14268/api/traces?format=jaeger.thrift.
	CollectorEndpoint string `toml:"collectorEndpoint" default:"http://localhost:14268/api/traces?format=jaeger.thrift" comment:"Jaeger collector endpoint"`

	// AgentEndpoint instructs exporter to send spans to Jaeger agent at this address.
	// For example, localhost:6831.
	AgentEndpoint string `toml:"agentEndpoint" default:"localhost:6831" comment:"Jaeger agent endpoint"`

	// Username to be used if basic auth is required.
	// Optional.
	Username string `toml:"username" comment:"Jaeger authentication username"`

	// Password to be used if basic auth is required.
	// Optional.
	Password string `toml:"password" comment:"Jaeger authenication password"`

	// ServiceName is the name of the process.
	ServiceName string `toml:"serviceName" comment:"Service name"`
}

Config holds information necessary for sending trace to jaeger.

func (Config) Validate

func (c Config) Validate() error

Validate checks that the configuration is valid.

Jump to

Keyboard shortcuts

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