apmrichardknopmachinery

package module
v2.0.0-...-6f3c223 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractTraceContext

func ExtractTraceContext(headers tasks.Headers) (apm.TraceContext, bool)

ExtractTraceContext returns apm.TraceContext from the trace information stored in the headers.

It's the client's choice how to use the provided apm.TraceContext

func InjectTraceContext

func InjectTraceContext(tc apm.TraceContext, headers tasks.Headers) tasks.Headers

InjectTraceContext injects the provided apm.TraceContext in the headers of amqp.Publishing

The header injected is W3C Trace-Context header used for trace propagation => "Traceparent" If the provided msg contains header with this key it will be overwritten

Types

This section is empty.

Jump to

Keyboard shortcuts

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