Documentation ¶
Overview ¶
Package sapmexporter exports trace data using Splunk's SAPM protocol.
Index ¶
- type Config
- type Factory
- func (f *Factory) CreateDefaultConfig() configmodels.Exporter
- func (f *Factory) CreateMetricsExporter(_ context.Context, _ component.ExporterCreateParams, _ configmodels.Exporter) (component.MetricsExporter, error)
- func (f *Factory) CreateTraceExporter(_ context.Context, params component.ExporterCreateParams, ...) (component.TraceExporter, error)
- func (f *Factory) Type() configmodels.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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"` // 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"` }
Config defines configuration for SAPM exporter.
type Factory ¶
type Factory struct { }
Factory is the factory for SAPM exporter.
func (*Factory) CreateDefaultConfig ¶
func (f *Factory) CreateDefaultConfig() configmodels.Exporter
CreateDefaultConfig creates the default configuration for exporter.
func (*Factory) CreateMetricsExporter ¶
func (f *Factory) CreateMetricsExporter( _ context.Context, _ component.ExporterCreateParams, _ configmodels.Exporter, ) (component.MetricsExporter, error)
CreateMetricsExporter creates a metrics exporter based on this config.
func (*Factory) CreateTraceExporter ¶
func (f *Factory) CreateTraceExporter( _ context.Context, params component.ExporterCreateParams, cfg configmodels.Exporter, ) (component.TraceExporter, error)
CreateTraceExporter creates a trace exporter based on this config.
func (*Factory) Type ¶
func (f *Factory) Type() configmodels.Type
Type gets the type of the Exporter config created by this factory.
Click to show internal directories.
Click to hide internal directories.