invocation

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package invocation shares invocation identity across utility wrappers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ensure

func Ensure(ctx context.Context) context.Context

Ensure reuses invocation information when utility wrappers are composed.

func TraceHeader

func TraceHeader(ctx context.Context) string

TraceHeader prefers the request context used by aws-lambda-go over process state.

func TraceID

func TraceID(ctx context.Context) string

Types

type Info

type Info struct{ ColdStart bool }

Info belongs to one handler invocation and is immutable after construction.

func FromContext

func FromContext(ctx context.Context) (Info, bool)

Jump to

Keyboard shortcuts

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