Timber v3.1.2 Timber.Contexts.HTTPContext View Source

DEPRECATED

This module is deprecated in favor of using maps. The next evolution of Timber (2.0) no long requires a strict schema and therefore simplifies how users set context:

Timber.add_context(http: %{method: "post", path: "/checkout"})

In addition, you can use Timber integrations to automatically capture context in Plug and Phoenix:

Checkout the README for a list of all integrations.

Link to this section Summary

Link to this section Types

Link to this type

m() View Source
m() :: %{
  :method => String.t(),
  :path => String.t(),
  optional(:request_id) => String.t(),
  optional(:remote_addr) => String.t()
}

Link to this type

t() View Source
t() :: %Timber.Contexts.HTTPContext{
  method: String.t(),
  path: String.t(),
  remote_addr: String.t() | nil,
  request_id: String.t() | nil
}