tracer

package
v1.96.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 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 tracer.

func NewHandler

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

NewHandler for tracer.

func (*Handler) Handle

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

type Params

type Params struct {
	fx.In

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

Params for tracer.

type Producer

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

Producer for tracer.

func NewProducer

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

NewProducer for tracer.

func (*Producer) Publish

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

type Tracer

type Tracer trace.Tracer

Tracer for tracer.

func NewTracer

func NewTracer(params Params) (Tracer, error)

NewTracer for tracer.

Jump to

Keyboard shortcuts

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