auapmmiddleware

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTraceHeadersToResponse

func AddTraceHeadersToResponse(next http.Handler) http.Handler

AddTraceHeadersToResponse adds the APM trace headers to the response.

Does nothing if there is no transaction in the context.

func SetupDiscardTracer

func SetupDiscardTracer() error

SetupDiscardTracer globally sets up a discard tracer that does not send any traces.

We override the default tracer because this will affect all APM traces, even those created by libraries we include, which often just use the default tracer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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