lib/rails_cloud_tasks/rack/jobs.rb in rails-cloud-tasks-0.0.9 vs lib/rails_cloud_tasks/rack/jobs.rb in rails-cloud-tasks-0.0.10

- old
+ new

@@ -13,9 +13,13 @@ ) request = ::Rack::Request.new(env) job_args = extract_args(request) + RailsCloudTasks::Instrumentation.add_custom_attributes( + { request_body: job_args } + ) + job_class.perform_now(*job_args) response(200, {}) rescue Rack::InvalidPayloadError => e response(422, { error: e.message })