Skip to content
Search
DSL · Telemetry

enriching_log_middleware

Definition

/**
 * Create an EnrichingLogMiddleware that merges default attributes into every log
 * entry. Attributes set at the call site win over these defaults.
 *
 * @param array<string, array<array-key, mixed>|bool|\DateTimeInterface|float|int|string|\Throwable>|Attributes $attributes
 */
enriching_log_middleware(Attributes|array $attributes) : EnrichingLogMiddleware

Contributors

Built in the open.

Join us on GitHub
scroll back to top