otlptcpclient

package module
v0.0.0-...-0f2422a Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

func NewExporter(address string, options ...Options) (*Exporter, error)

NewExporter creates a new exporter. It is recommended to create a different exporter for logs, metrics, and traces.

func (*Exporter) ForceFlush

func (e *Exporter) ForceFlush(context.Context) error

ForceFlush flushes any metric data held by an Exporter. Currently, it does nothing

func (*Exporter) Shutdown

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

Shutdown the exporter. All future uploads will fail.

func (*Exporter) Start

func (e *Exporter) Start(ctx context.Context) error

Start the exporter.

func (*Exporter) Stop

func (e *Exporter) Stop(ctx context.Context) error

Stop the exporter. All future uploads will fail.

func (*Exporter) UploadLogs

func (e *Exporter) UploadLogs(ctx context.Context, protoLogs *logpb.ResourceLogs) error

UploadLogs transmits metric data to an OTLP TCP receiver.

func (*Exporter) UploadMetrics

func (e *Exporter) UploadMetrics(ctx context.Context, protoMetrics *metricpb.ResourceMetrics) error

UploadMetrics transmits metric data to an OTLP TCP receiver.

func (*Exporter) UploadTraces

func (e *Exporter) UploadTraces(ctx context.Context, protoSpans []*tracepb.ResourceSpans) error

UploadTraces transmits metric data to an OTLP TCP receiver.

type Options

type Options interface {
	// contains filtered or unexported methods
}

Options are used when creating a Exporter.

Jump to

Keyboard shortcuts

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