requestid

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 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