pagantis_elixir_tools v0.10.1 ElixirTools.Metrix.Plug.Tags
Module to help the Metrics plug to fetch tags
Link to this section Summary
Functions
Returns the requested API version, based on the URL
Returns the controller name if set, nil otherwise
Returns the method name if set, nil otherwise
Returns the cleaned request path. It removes additional slashes.
Returns the code class for the response.
Link to this section Functions
Link to this function
api_version(arg1)
api_version(arg1)
api_version(Plug.Conn.t()) :: String.t() | nil
api_version(Plug.Conn.t()) :: String.t() | nil
Returns the requested API version, based on the URL
Link to this function
controller_name(arg1)
controller_name(arg1)
controller_name(Plug.Conn.t()) :: String.t() | nil
controller_name(Plug.Conn.t()) :: String.t() | nil
Returns the controller name if set, nil otherwise
Link to this function
method_name(arg1)
method_name(arg1)
method_name(Plug.Conn.t()) :: String.t() | nil
method_name(Plug.Conn.t()) :: String.t() | nil
Returns the method name if set, nil otherwise
Link to this function
request_path(map)
request_path(map)
request_path(Plug.Conn.t()) :: String.t() | nil
request_path(Plug.Conn.t()) :: String.t() | nil
Returns the cleaned request path. It removes additional slashes.
Link to this function
response_status_code_class(map)
response_status_code_class(map)
response_status_code_class(Plug.Conn.t()) :: String.t()
response_status_code_class(Plug.Conn.t()) :: String.t()
Returns the code class for the response.