correlation

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package correlation provides correlation ID propagation via context.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractFromContext

func ExtractFromContext(ctx context.Context) string

ExtractFromContext returns the correlation ID stored in ctx, or an empty string if none is present.

func InjectToContext

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

InjectToContext returns a copy of ctx with the correlation ID set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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