rabbitMq

package
v0.0.0-...-1907b39 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExampleHandler

func ExampleHandler(c *gin.Context)

ExampleHandler that propagates span over rabbitmq. Extracts span from http request, publishes it as rabbitmq headers, then consumes and extracts a span which is a child of the original span.

func ExtractHeader

func ExtractHeader(span trace.Span) (header amqp.Table)

ExtractHeader injects otel span into ampq headers

func ExtractSpan

func ExtractSpan(header amqp.Table) context.Context

ExtractSpan returns a context with underlying span extracted from ampq headers

Types

This section is empty.

Jump to

Keyboard shortcuts

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