lib/rails_cloud_tasks/rack/jobs.rb in rails-cloud-tasks-0.0.2 vs lib/rails_cloud_tasks/rack/jobs.rb in rails-cloud-tasks-0.0.3
- old
+ new
@@ -6,9 +6,13 @@
class Jobs
class << self
def call(env)
job_class = extract_job_class(env)
+ RailsCloudTasks::Instrumentation.transaction_name!(
+ "RailsCloudTasks/#{job_class}/perform_now"
+ )
+
request = ::Rack::Request.new(env)
job_args = extract_args(request)
job_class.perform_now(job_args)
response(200, {})