opentracing

package
v1.85.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Unlicense Imports: 11 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 added in v1.58.0

type Tracer otr.Tracer

Tracer for otr.

func NewTracer added in v1.64.0

func NewTracer(params TracerParams) (Tracer, error)

NewTracer for otr.

type TracerParams added in v1.65.0

type TracerParams struct {
	fx.In

	Lifecycle fx.Lifecycle
	Config    *opentracing.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