diff --git a/app/controllers/stories/feeds_controller.rb b/app/controllers/stories/feeds_controller.rb index d4781a5cc..cac63353a 100644 --- a/app/controllers/stories/feeds_controller.rb +++ b/app/controllers/stories/feeds_controller.rb @@ -43,8 +43,10 @@ module Stories else Articles::Feeds::LargeForemExperimental.new(user: current_user, page: @page, tag: params[:tag]) end - Datadog.tracer.trace("feed.query", span_type: "db", - resource: "#{self.class}.#{__method__}.#{feed.class.to_s.dasherize}") do + Datadog.tracer.trace("feed.query", + span_type: "db", + resource: "#{self.class}.#{__method__}", + tags: { feed_class: feed.class.to_s.dasherize }) do # Hey, why the to_a you say? Because the # LargeForemExperimental has already done this. But the # weighted strategy has not. I also don't want to alter the @@ -65,8 +67,10 @@ module Stories else Articles::Feeds::LargeForemExperimental.new(user: current_user, page: @page, tag: params[:tag]) end - Datadog.tracer.trace("feed.query", span_type: "db", - resource: "#{self.class}.#{__method__}.#{feed.class.to_s.dasherize}") do + Datadog.tracer.trace("feed.query", + span_type: "db", + resource: "#{self.class}.#{__method__}", + tags: { feed_class: feed.class.to_s.dasherize }) do # Hey, why the to_a you say? Because the # LargeForemExperimental has already done this. But the # weighted strategy has not. I also don't want to alter the diff --git a/app/controllers/stories_controller.rb b/app/controllers/stories_controller.rb index 3d9182e0d..c71588e73 100644 --- a/app/controllers/stories_controller.rb +++ b/app/controllers/stories_controller.rb @@ -250,8 +250,10 @@ class StoriesController < ApplicationController else Articles::Feeds::LargeForemExperimental.new(page: @page, tag: params[:tag]) end - Datadog.tracer.trace("feed.query", span_type: "db", - resource: "#{self.class}.#{__method__}.#{feed.class.to_s.dasherize}") do + Datadog.tracer.trace("feed.query", + span_type: "db", + resource: "#{self.class}.#{__method__}", + tags: { feed_class: feed.class.to_s.dasherize }) do # Hey, why the to_a you say? Because the # LargeForemExperimental has already done this. But the # weighted strategy has not. I also don't want to alter the