request

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package request offers functions for working with requestIDs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IDFromContext

func IDFromContext(ctx context.Context) string

IDFromContext returns the request ID from the context. A zero ID is returned if there are no idenfiers in the current context.

func NewID

func NewID() string

NewID generates a new UUID string.

func WithID

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

WithID puts the request ID into the current context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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