LoggerJSON.PlugUtils (logger_json v4.3.0) View Source
This module contains functions that can be used across different
LoggerJSON.Plug.MetadataFormatters
implementations to provide
common functionality.
Link to this section Summary
Link to this section Functions
Grabs the client IP address from Plug.Conn
. First we try
to grab the client IP from the x-forwarded-for
header.
Then we fall back to the conn.remote_ip
field.