context

package
v1.113.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HttpContextContextKey httpContextContextType
View Source
var RequestIdContextKey = &requestIdContextType{}

Functions

func BodiesOmitted added in v1.113.0

func BodiesOmitted(ctx context.Context) bool

BodiesOmitted reports whether the context was marked by WithBodiesOmitted.

func WithBodiesOmitted added in v1.113.0

func WithBodiesOmitted(parent context.Context) context.Context

WithBodiesOmitted marks a record's context as one whose HTTP context is to be written without the bodies of its request and response: the summary of a request served, which says who asked for what and how it ended, and has no need of what was sent.

func WithHttpContext

func WithHttpContext(parent context.Context) context.Context

func WithHttpContextValue

func WithHttpContextValue(parent context.Context, httpContext *altshiftHttpTypes.HttpContext) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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