otel

package
v0.40.2 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MPL-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

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

func (Consumer) Capabilities

func (Consumer) Capabilities() consumer.Capabilities

Capabilities implements consumer.Traces.

func (Consumer) ConsumeLogs

func (Consumer) ConsumeLogs(ctx context.Context, ld plog.Logs) error

ConsumeLogs implements consumer.Logs.

func (Consumer) ConsumeMetrics

func (c Consumer) ConsumeMetrics(ctx context.Context, md pmetric.Metrics) error

ConsumeMetrics implements consumer.Metrics.

func (Consumer) ConsumeTraces

func (Consumer) ConsumeTraces(ctx context.Context, td ptrace.Traces) error

ConsumeTraces implements consumer.Traces.

func (*Consumer) Shutdown

func (c *Consumer) Shutdown(ctx context.Context)

type OtelReceiver

type OtelReceiver struct {
	Endpoint string
	// contains filtered or unexported fields
}

func StartOtelReceiver

func StartOtelReceiver(ctx context.Context, opts ...OtelReceiverOption) (*OtelReceiver, error)

func (*OtelReceiver) Shutdown

func (r *OtelReceiver) Shutdown(ctx context.Context)

type OtelReceiverOption

type OtelReceiverOption func(*Consumer)

func WithMetricsFilename

func WithMetricsFilename(filename string) OtelReceiverOption

Jump to

Keyboard shortcuts

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