otel

package
v1.86.28 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Unlicense Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	handler.Handler
	// contains filtered or unexported fields
}

Handler for otr.

func NewHandler

func NewHandler(topic, channel string, tracer Tracer, h handler.Handler) *Handler

NewHandler for otr.

func (*Handler) Handle

func (h *Handler) Handle(ctx context.Context, message *message.Message) error

type Producer

type Producer struct {
	producer.Producer
	// contains filtered or unexported fields
}

Producer for otr.

func NewProducer

func NewProducer(tracer Tracer, p producer.Producer) *Producer

NewProducer for otr.

func (*Producer) Publish

func (p *Producer) Publish(ctx context.Context, topic string, message *message.Message) error

type Tracer

type Tracer trace.Tracer

Tracer for otr.

func NewTracer

func NewTracer(params TracerParams) (Tracer, error)

NewTracer for otr.

type TracerParams

type TracerParams struct {
	fx.In

	Lifecycle fx.Lifecycle
	Config    *otel.Config
	Version   version.Version
}

TracerParams for otr.

Jump to

Keyboard shortcuts

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