← Graph

Faraday outbound logging middleware

concept 2 connections

Pattern shown in the talk: define a Faraday middleware that fires on every response returned from an outbound API call and logs a structured event containing URL, duration, and other useful attributes. Registered once and reused for any Faraday client. Combined with inbound HTTP tagging via config.log_tags, this gives full visibility into the requests entering and leaving the app.

category
pattern
concept Faraday outbound logging middleware
uses
Faraday tool
Pattern is implemented as Faraday middleware.
concept Faraday outbound logging middleware
uses
The middleware emits structured log events via semantic_logger.

Provenance

Read by
3 extractions