diff --git a/lib/github/ldap/instrumentation.rb b/lib/github/ldap/instrumentation.rb index d42909b..5eae7b8 100644 --- a/lib/github/ldap/instrumentation.rb +++ b/lib/github/ldap/instrumentation.rb @@ -13,6 +13,7 @@ module GitHub # # 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?