requestid

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Header = "X-Request-ID"
	Key    = "request_id"
)

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) string

FromContext returns the request id stored in context.

func New added in v0.1.4

func New() string

func WithRequestID

func WithRequestID(ctx context.Context, requestID string) context.Context

WithRequestID stores a request id in context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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