opentelemetry

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractRemoteParentSpanContext

func ExtractRemoteParentSpanContext() message.HandlerMiddleware

ExtractRemoteParentSpanContext defines a middleware that will extract trace/span id from the message metadata and creates a child span for the message.

func ExtractRemoteParentSpanContextHandler

func ExtractRemoteParentSpanContextHandler(h message.HandlerFunc) message.HandlerFunc

ExtractRemoteParentSpanContextHandler decorates a watermill HandlerFunc to extract trace/span id from the metadata when a message is received and set a child span context.

func NewTracePropagatingPublisherDecorator

func NewTracePropagatingPublisherDecorator(pub message.Publisher) message.Publisher

Types

type TracePropagatingPublisherDecorator

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

Decorator that adds trace/span id to the message metadata, so the subscriber(s) can extract this.

func (*TracePropagatingPublisherDecorator) Close

func (*TracePropagatingPublisherDecorator) Publish

func (p *TracePropagatingPublisherDecorator) Publish(topic string, messages ...*message.Message) error

Jump to

Keyboard shortcuts

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