propagation

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextKey

type ContextKey string

ContextKey is a type that should be used to store data into context. It is essential to guarantee data context propagation features on logging and distributed tracing.

type ContextKeySet

type ContextKeySet map[ContextKey]any

ContextKeySet is a set of ContextKeys. Developers are capable to use the value of this map freely. Example: Map a ContextKey to an HTTP Request Param.

func (ContextKeySet) Add

func (s ContextKeySet) Add(key ContextKey, value ...any) ContextKeySet

Add creates a new ContextKeySet with the given ContextKey attached.

func (ContextKeySet) Merge

Merge merges the given ContextKeySet into the existing one and returns a copy of the result.

Jump to

Keyboard shortcuts

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