instrumentation

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReader

func NewReader(inner kafka.MessageReader, instrumentation *otel.Instrumentation) (kafka.MessageReader, error)

func NewWriter

func NewWriter(inner kafka.MessageWriter, instrumentation *otel.Instrumentation) (kafka.MessageWriter, error)

Types

type Reader

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

func (*Reader) Close

func (i *Reader) Close() error

func (*Reader) CommitOffsets

func (i *Reader) CommitOffsets(ctx context.Context, offsets ...*kafka.Offset) (err error)

func (*Reader) FetchMessage

func (i *Reader) FetchMessage(ctx context.Context) (msg *kafka.Message, err error)

type Writer

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

func (*Writer) Close

func (i *Writer) Close() error

func (*Writer) WriteMessages

func (i *Writer) WriteMessages(ctx context.Context, msgs ...kafka.Message) (err error)

Jump to

Keyboard shortcuts

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