tempo

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Whether the Tempo subsystem should be enabled.
	Enabled bool `yaml:"-"`

	PushConfig PushConfig `yaml:"push_config"`

	// Receivers: https://github.com/open-telemetry/opentelemetry-collector/blob/1962d7cd2b371129394b0242b120835e44840192/receiver/README.md
	Receivers map[string]interface{} `yaml:"receivers"`

	// Attributes: https://github.com/open-telemetry/opentelemetry-collector/blob/1962d7cd2b371129394b0242b120835e44840192/processor/attributesprocessor/config.go#L30
	Attributes map[string]interface{} `yaml:"attributes"`

	// prom service discovery
	ScrapeConfigs []interface{} `yaml:"scrape_configs"`
}

Config controls the configuration of the Tempo trace pipeline.

func (*Config) UnmarshalYAML

func (c *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler.

type PushConfig added in v0.7.2

PushConfig controls the configuration of exporting to Grafana Cloud

type Tempo

type Tempo struct {
	// contains filtered or unexported fields
}

Tempo wraps the OpenTelemetry collector to enablet tracing pipelines

func New

func New(cfg Config, level logging.Level) (*Tempo, error)

New creates and starts Loki log collection.

func (*Tempo) GetExporters

GetExporters implements component.Host

func (*Tempo) GetExtensions

func (t *Tempo) GetExtensions() map[configmodels.Extension]component.ServiceExtension

GetExtensions implements component.Host

func (*Tempo) GetFactory

func (t *Tempo) GetFactory(kind component.Kind, componentType configmodels.Type) component.Factory

GetFactory implements component.Host

func (*Tempo) ReportFatalError

func (t *Tempo) ReportFatalError(err error)

ReportFatalError implements component.Host

func (*Tempo) Stop

func (t *Tempo) Stop()

Stop stops the OpenTelemetry collector subsystem

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳