Azu::ErrorContext
Enhanced error context for better debugging
Constructors
new(timestamp : Time = Time.utc, request_id : Nil | String = nil, user_id : Nil | String = nil, session_id : Nil | String = nil, ip_address : Nil | String = nil, user_agent : Nil | String = nil, referer : Nil | String = nil, endpoint : Nil | String = nil, method : Nil | String = nil, params : Nil | Hash(String, String) = nil, headers : HTTP::Headers | Nil = nil, _load_environment : Bool = false)
SourceClass methods
from_http_context(context : HTTP::Server::Context, request_id : String | Nil = nil, load_environment : Bool = true)
SourceCreate a lightweight context without environment data
Instance methods
endpoint
Sourceheaders
Sourceip_address
Sourcemethod
Sourceparams
Sourcereferer
Sourcerequest_id
Sourcesession_id
Sourcetimestamp
Sourceto_h
Sourceto_json(json : JSON::Builder)
Sourceuser_agent
Sourceuser_id
Source