fileexporter

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2020 License: Apache-2.0 Imports: 13 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 {
	configmodels.ExporterSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct.

	// Path of the file to write to. Path is relative to current directory.
	Path string `mapstructure:"path"`
}

Config defines configuration for file exporter.

type Exporter

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

Exporter is the implementation of file exporter that writes telemetry data to a file in Protobuf-JSON format.

func (*Exporter) ConsumeMetricsData

func (e *Exporter) ConsumeMetricsData(ctx context.Context, md consumerdata.MetricsData) error

func (*Exporter) ConsumeTraceData

func (e *Exporter) ConsumeTraceData(ctx context.Context, td consumerdata.TraceData) error

func (*Exporter) Shutdown

func (e *Exporter) Shutdown() error

Shutdown stops the exporter and is invoked during shutdown.

func (*Exporter) Start

func (e *Exporter) Start(host component.Host) error

type Factory

type Factory struct {
}

Factory is the factory for logging exporter.

func (*Factory) CreateDefaultConfig

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

CreateDefaultConfig creates the default configuration for exporter.

func (*Factory) CreateMetricsExporter

func (f *Factory) CreateMetricsExporter(logger *zap.Logger, config configmodels.Exporter) (exporter.MetricsExporter, error)

CreateMetricsExporter creates a metrics exporter based on this config.

func (*Factory) CreateTraceExporter

func (f *Factory) CreateTraceExporter(logger *zap.Logger, config configmodels.Exporter) (exporter.TraceExporter, error)

CreateTraceExporter creates a trace exporter based on this config.

func (*Factory) Type

func (f *Factory) Type() string

Type gets the type of the Exporter config created by this factory.

Jump to

Keyboard shortcuts

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