Snakepit.Telemetry.Correlation (Snakepit v0.11.0)

View Source

Utilities for generating and propagating correlation identifiers.

Summary

Functions

Ensures a non-empty correlation identifier is present.

Generates a new correlation identifier.

Functions

ensure(id)

@spec ensure(String.t() | nil) :: String.t()

Ensures a non-empty correlation identifier is present.

new_id()

@spec new_id() :: String.t()

Generates a new correlation identifier.