otlpgrpc

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OtlpGrpcExporter

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

func NewOtlpGrpcExporter

func NewOtlpGrpcExporter(ctx context.Context, config *OtlpGrpcExporterConfig) (*OtlpGrpcExporter, error)

func (*OtlpGrpcExporter) Export

func (e *OtlpGrpcExporter) Export(ctx context.Context, metrics []*exporter.Metric) error

func (*OtlpGrpcExporter) IsRunning

func (e *OtlpGrpcExporter) IsRunning() bool

func (*OtlpGrpcExporter) Start

func (e *OtlpGrpcExporter) Start(ctx context.Context)

func (*OtlpGrpcExporter) Stop

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

type OtlpGrpcExporterConfig

type OtlpGrpcExporterConfig struct {
	URL                string
	TLS                *OtlpGrpcExporterConfigTLS
	SendBuffer         int
	MaxRetryCount      int
	RetryWait          time.Duration
	ResourceAttributes map[string]string
}

type OtlpGrpcExporterConfigTLS

type OtlpGrpcExporterConfigTLS struct {
	Insecure          bool
	CACertPool        *x509.CertPool
	ClientCertificate *tls.Certificate
}

Jump to

Keyboard shortcuts

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