correlation

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package correlation performs span to metric correlation for SignalFx.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	confighttp.ClientConfig `mapstructure:",squash"`
	correlations.Config     `mapstructure:",squash"`

	// How long to wait after a trace span's service name is last seen before
	// uncorrelating that service.
	StaleServiceTimeout time.Duration `mapstructure:"stale_service_timeout"`
	// SyncAttributes is a key of the span attribute name to sync to the dimension as the value.
	SyncAttributes map[string]string `mapstructure:"sync_attributes"`
}

Config defines configuration for correlation via traces.

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns default configuration correlation values.

type Tracker

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

Tracker correlation

func NewTracker

func NewTracker(cfg *Config, accessToken configopaque.String, params exporter.CreateSettings) *Tracker

NewTracker creates a new tracker instance for correlation.

func (*Tracker) ProcessTraces added in v0.94.0

func (cor *Tracker) ProcessTraces(ctx context.Context, traces ptrace.Traces) error

ProcessTraces processes the provided spans to correlate the services and environment observed to the resources (host, pods, etc.) emitting the spans.

func (*Tracker) Shutdown

func (cor *Tracker) Shutdown(_ context.Context) error

Shutdown correlation tracking.

func (*Tracker) Start

func (cor *Tracker) Start(ctx context.Context, host component.Host) (err error)

Start correlation tracking.

Jump to

Keyboard shortcuts

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