Conversation
| context "with 2 arity block" do | ||
| let(:async_block) do | ||
| lambda do |event, hint| | ||
| event["tags"]["hint"] = hint |
There was a problem hiding this comment.
I think that something that should maybe be documented. We jump from event object to and hash in async scenario with for example event.server_name to event['server_name'] for example.
I had the surprise yesterday. Maybe add a small notice when speaking about async in README.
Also the second args should be documented? Maybe you planned to do it in another PR 😊
There was a problem hiding this comment.
I think that something that should maybe be documented.
yeah I agree with this. thanks for reminding 😄
Also the second args should be documented?
if we consider "not passing event hint" as a bug, this change just fixes it to match the users' expectation. so I don't think it's something that worth document for. unless you're talking about updating the examples? then yes, I'll update them as well.
|
Thanks! |
This fixes #1188.