Documentation ¶
Index ¶
- func NewFactory() component.ExporterFactory
- func NewLogsExporter(config configmodels.Exporter, level string, logger *zap.Logger) (component.LogsExporter, error)
- func NewMetricsExporter(config configmodels.Exporter, level string, logger *zap.Logger) (component.MetricsExporter, error)
- func NewTraceExporter(config configmodels.Exporter, level string, logger *zap.Logger) (component.TraceExporter, error)
- type Config
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 Logging exporter
func NewLogsExporter ¶ added in v0.7.0
func NewLogsExporter(config configmodels.Exporter, level string, logger *zap.Logger) (component.LogsExporter, error)
NewLogsExporter creates an exporter.LogsExporter that just drops the received data and logs debugging messages.
func NewMetricsExporter ¶
func NewMetricsExporter(config configmodels.Exporter, level string, logger *zap.Logger) (component.MetricsExporter, error)
NewMetricsExporter creates an exporter.MetricsExporter that just drops the received data and logs debugging messages.
func NewTraceExporter ¶
func NewTraceExporter(config configmodels.Exporter, level string, logger *zap.Logger) (component.TraceExporter, error)
NewTraceExporter creates an exporter.TraceExporter that just drops the received data and logs debugging messages.
Types ¶
type Config ¶
type Config struct { configmodels.ExporterSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct. // LogLevel defines log level of the logging exporter; options are debug, info, warn, error. LogLevel string `mapstructure:"loglevel"` // SamplingInitial defines how many samples are initially logged during each second. SamplingInitial int `mapstructure:"sampling_initial"` // SamplingThereafter defines the sampling rate after the initial samples are logged. SamplingThereafter int `mapstructure:"sampling_thereafter"` }
Config defines configuration for logging exporter.
Click to show internal directories.
Click to hide internal directories.