trace

package module
v0.0.0-...-a98cc2f Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const TraceID = "traceid"

TraceID is the header that is passed in outgoing response

Variables

This section is empty.

Functions

func SetTraceID

func SetTraceID(next http.Handler) http.Handler

SetTraceID is a http middleware that checks for "Traceparent" header in the incoming requests. If present, parse and extract the traceid. Else create a custom traceid and sets it as new "Traceparent" header in incoming request. Also sets that traceid in outgoing response header.

Types

This section is empty.

Jump to

Keyboard shortcuts

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