requestid

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(ctx context.Context) (string, error)

Extract takes the call-scoped requestID from the context. If the ctxRequestID wasn't used, an error is returned.

func ToContext

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

ToContext adds the sdkrequestid.RequestID to the context for extraction later. Returning the new context that has been created.

Types

This section is empty.

Jump to

Keyboard shortcuts

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