lightstepexporter

package module
Version: v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 11 Imported by: 1

README

LightStep Exporter

This exporter supports sending trace data to LightStep

The following configuration options are supported:

  • access_token (Required): The access token for your LightStep project.
  • satellite_host (Optional): Your LightStep Satellite Pool Hostname. Defaults to ingest.lightstep.com.
  • satellite_port (Optional): Your LightStep Satellite Pool Port. Defaults to 443.
  • service_name (Optional): The service name for spans reported by this collector. Defaults to opentelemetry-collector.
  • plain_text (Optional): False for HTTPS LightStep Satellite Pools. Defaults to False. Example:
exporters:
    lightstep:
        access_token: "abcdef12345"
        satellite_host: "my.satellite.pool.coolcat.com"
        satellite_port: 8000
        service_name: "myService"
        plain_text: true

Documentation

Index

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.
	// AccessToken is your project access token in LightStep.
	AccessToken string `mapstructure:"access_token"`
	// SatelliteHost is the satellite pool hostname.
	SatelliteHost string `mapstructure:"satellite_host"`
	// SatellitePort is the satellite pool port.
	SatellitePort int `mapstructure:"satellite_port"`
	// ServiceName is the LightStep service name for your spans.
	ServiceName string `mapstructure:"service_name"`
	// PlainText is true for plain text satellite pools.
	PlainText bool `mapstructure:"plain_text"`
}

Config defines configuration options for the LightStep exporter.

type Factory

type Factory struct {
}

Factory is the factory for the LightStep exporter.

func (*Factory) CreateDefaultConfig

func (f *Factory) CreateDefaultConfig() configmodels.Exporter

CreateDefaultConfig creates a default configuration for this exporter.

func (*Factory) CreateMetricsExporter

func (f *Factory) CreateMetricsExporter(logger *zap.Logger, cfg configmodels.Exporter) (component.MetricsExporterOld, error)

CreateMetricsExporter returns nil.

func (*Factory) CreateTraceExporter

func (f *Factory) CreateTraceExporter(logger *zap.Logger, cfg configmodels.Exporter) (component.TraceExporterOld, error)

CreateTraceExporter creates a LightStep trace exporter for this configuration.

func (*Factory) Type

func (f *Factory) Type() configmodels.Type

Type gets the type of the exporter configuration created by this factory.

type LightStepExporter

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

LightStepExporter contains a pointer to a LightStep opentelemetry exporter.

func (*LightStepExporter) Shutdown

func (e *LightStepExporter) Shutdown(context.Context) error

Shutdown closes the LightStep opentelemetry exporter.

Jump to

Keyboard shortcuts

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