requestid

package
v0.15.4 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

View Source
const HeaderKey = "Athens-Request-ID"

HeaderKey is the header key that athens uses to pass request ids into logs and outbound requests.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) string

FromContext returns a requestID from the context or an empty string if not found.

func SetInContext

func SetInContext(ctx context.Context, id string) context.Context

SetInContext sets the given requestID into the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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