lib/net/ldap/instrumentation.rb in net-ldap-0.16.2 vs lib/net/ldap/instrumentation.rb in net-ldap-0.16.3
- old
+ new
@@ -10,11 +10,11 @@
#
# Returns the return value of the block.
def instrument(event, payload = {})
payload = (payload || {}).dup
if instrumentation_service
- instrumentation_service.instrument(event, payload) do |payload|
- payload[:result] = yield(payload) if block_given?
+ instrumentation_service.instrument(event, payload) do |instr_payload|
+ instr_payload[:result] = yield(instr_payload) if block_given?
end
else
yield(payload) if block_given?
end
end