Documentation ¶
Index ¶
- type Exporter
- func (e *Exporter) ForceFlush(context.Context) error
- func (e *Exporter) Shutdown(context.Context) error
- func (e *Exporter) Start(ctx context.Context) error
- func (e *Exporter) Stop(ctx context.Context) error
- func (e *Exporter) UploadLogs(ctx context.Context, protoLogs *logpb.ResourceLogs) error
- func (e *Exporter) UploadMetrics(ctx context.Context, protoMetrics *metricpb.ResourceMetrics) error
- func (e *Exporter) UploadTraces(ctx context.Context, protoSpans []*tracepb.ResourceSpans) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter exports logs, metrics, and traces to an oltcpreceiver.
func NewExporter ¶
NewExporter creates a new exporter. It is recommended to create a different exporter for logs, metrics, and traces.
func (*Exporter) ForceFlush ¶
ForceFlush flushes any metric data held by an Exporter. Currently, it does nothing
func (*Exporter) UploadLogs ¶
UploadLogs transmits metric data to an OTLP TCP receiver.
func (*Exporter) UploadMetrics ¶
UploadMetrics transmits metric data to an OTLP TCP receiver.
func (*Exporter) UploadTraces ¶
UploadTraces transmits metric data to an OTLP TCP receiver.
Click to show internal directories.
Click to hide internal directories.