Timber v2.4.4 Timber.Events.HTTPResponseEvent View Source

The HTTPResponseEvent tracks HTTP responses in your app, both outgoing and incoming from external services (should you choose to track these). This gives you structured insight into all of your HTTP response events.

Timber can automatically track response events if you use a Plug based framework through Timber.Plug.

Link to this section Summary

Functions

Message to be used when logging

Builds a new struct taking care to

Link to this section Types

Link to this type t() View Source
t() :: %Timber.Events.HTTPResponseEvent{body: String.t | nil, direction: String.t | nil, headers: map | nil, headers_json: String.t | nil, request_id: String.t | nil, service_name: String.t | nil, status: pos_integer, time_ms: float}

Link to this section Functions

Message to be used when logging.

Builds a new struct taking care to:

  • Normalize header values so they are consistent.
  • Removes “” or nil values.