otlpink

package
v0.8.9 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OTLPSink

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

func StartOTLPSink

func StartOTLPSink(
	ctx context.Context,
	ll *slog.Logger,
	client collogpb.LogsServiceClient,
	name string,
	resource *typesv1.Resource,
	scope *typesv1.Scope,
	bufferSize int,
	drainBufferFor time.Duration,
	dropIfFull bool,
	notifyUnableToIngest func(err error),
) *OTLPSink

func (*OTLPSink) Close

func (snk *OTLPSink) Close(ctx context.Context) error

Close can only be called once, calling it twice will panic.

func (*OTLPSink) Receive

func (snk *OTLPSink) Receive(ctx context.Context, ev *typesv1.Log) error

Jump to

Keyboard shortcuts

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