Skip to content

Include request and headers object in the payload in lib/logstasher/rails_ext/action_controller/metal/instrumentation.rb - #189

Open
gmiklos-ltg wants to merge 1 commit into
shadabahmed:mainfrom
get-bridge:payload-fix
Open

Include request and headers object in the payload in lib/logstasher/rails_ext/action_controller/metal/instrumentation.rb#189
gmiklos-ltg wants to merge 1 commit into
shadabahmed:mainfrom
get-bridge:payload-fix

Conversation

@gmiklos-ltg

Copy link
Copy Markdown

Hi!

We noticed that these two keys are missing from the payload and broke the actionpack OpenTelemetry instrumentation because it couldn't access the request object.

According to the guides here for 6.1 (which we are using) it should be present in the hash:
https://guides.rubyonrails.org/v6.1/active_support_instrumentation.html#process-action-action-controller

…ion.action_controller these fields are always present according to the Rails guides..

@kiss90benedek kiss90benedek left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same as #185. @shadabahmed any objections to merge & release this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants