shadabahmed / logstasher

Awesome rails logs
MIT License
817 stars 136 forks source link

Add request object to "process_action.action_controller" payload #185

Open theseanything opened 3 months ago

theseanything commented 3 months ago

Logstasher re-implements the "process_action.action_controller" notification handler. As of Rails 7, the handler assumes that there is a request object in the payload. The request object is used by OpenTelementry SDK and with it missing causes errors when reporting spans.

ERROR -- : OpenTelemetry error: undefined method `env' for nil:NilClass