Skip to content

Commit

Permalink
Comment out datadog config that doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
jbirdjavi committed Dec 20, 2024
1 parent 643152a commit 2d7e585
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/environments/staging.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Any differences between prod and stage should be handled in ENV variables
require_relative 'production'
require_relative "production"
6 changes: 3 additions & 3 deletions config/initializers/datadog_trace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
c.tracing.instrument :sidekiq, service_name: "#{ENV['PROJECT_NAME']}-sidekiq"

# skipping the health check: if it returns true, the trace is dropped
Datadog::Pipeline.before_flush(Datadog::Pipeline::SpanFilter.new do |span|
span.name == 'rack.request' && span.get_tag('http.url') == '/monitors/lb'
end)
#Datadog::Pipeline.before_flush(Datadog::Pipeline::SpanFilter.new do |span|
# span.name == 'rack.request' && span.get_tag('http.url') == '/monitors/lb'
#end)
end
end

0 comments on commit 2d7e585

Please sign in to comment.