Documentation ¶
Overview ¶
Package sapmexporter exports trace data using Splunk's SAPM protocol.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶ added in v0.7.0
func NewFactory() component.ExporterFactory
NewFactory creates a factory for SAPM exporter.
Types ¶
type Config ¶
type Config struct { configmodels.ExporterSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. // Endpoint is the destination to where traces will be sent to in SAPM format. // It must be a full URL and include the scheme, port and path e.g, https://ingest.signalfx.com/v2/trace Endpoint string `mapstructure:"endpoint"` // Correlation settings for associating environment and services observed from traces to metrics. Correlation CorrelationConfig `mapstructure:"correlation"` // AccessToken is the authentication token provided by SignalFx. AccessToken string `mapstructure:"access_token"` // NumWorkers is the number of workers that should be used to export traces. // Exporter can make as many requests in parallel as the number of workers. Defaults to 8. NumWorkers uint `mapstructure:"num_workers"` // MaxConnections is used to set a limit to the maximum idle HTTP connection the exporter can keep open. MaxConnections uint `mapstructure:"max_connections"` // Disable GZip compression. DisableCompression bool `mapstructure:"disable_compression"` splunk.AccessTokenPassthroughConfig `mapstructure:",squash"` exporterhelper.TimeoutSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. exporterhelper.QueueSettings `mapstructure:"sending_queue"` exporterhelper.RetrySettings `mapstructure:"retry_on_failure"` }
Config defines configuration for SAPM exporter.
type CorrelationConfig ¶ added in v0.13.0
type CorrelationConfig struct { confighttp.HTTPClientSettings `mapstructure:",squash"` correlations.Config `mapstructure:",squash"` // Enabled determines whether correlation is enabled or not. Enabled bool `mapstructure:"enabled"` // 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"` }
CorrelationConfig defines correlation settings.
type Tracker ¶ added in v0.13.0
type Tracker struct {
// contains filtered or unexported fields
}
Tracker correlation
func NewTracker ¶ added in v0.13.0
func NewTracker(cfg *Config, params component.ExporterCreateParams) *Tracker
NewTracker creates a new tracker instance for correlation.
func (*Tracker) AddSpans ¶ added in v0.13.0
AddSpans processes the provided spans to correlate the services and environment observed to the resources (host, pods, etc.) emitting the spans.
Click to show internal directories.
Click to hide internal directories.