jaeger

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package jaeger configures OpenCensus Jaeger exporter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(cfg Config, l deps) error

Setup configures Jaeger Exporter for OpenCensus traces.

Add Jaeger to service configuration:

Jaeger jaeger.Config `split_words:"true"`

Types

type Config added in v0.0.4

type Config struct {
	// CollectorEndpoint is the full url to the Jaeger HTTP Thrift collector.
	// For example, http://localhost:14268/api/traces
	CollectorEndpoint string `split_words:"true"`

	// AgentEndpoint instructs exporter to send spans to jaeger-agent at this address.
	// For example, localhost:6831.
	AgentEndpoint string `split_words:"true"`

	// OnError is the hook to be called when there is
	// an error occurred when uploading the stats data.
	// If no custom hook is set, errors are logged.
	// Optional.
	OnError func(err error) `json:"-"`

	// Username to be used if basic auth is required.
	// Optional.
	Username string

	// Password to be used if basic auth is required.
	// Optional.
	Password string

	// ServiceName is the Jaeger service name.
	ServiceName string `split_words:"true"`

	// Tags are added to Jaeger Process exports.
	Tags []jaeger.Tag

	// BufferMaxCount defines the total number of traces that can be buffered in memory.
	BufferMaxCount int `split_words:"true"`
}

Config defines Jaeger settings.

Jump to

Keyboard shortcuts

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