Skip to content

Commit

Permalink
Normalize redemption service name
Browse files Browse the repository at this point in the history
In order to reduce confusion and duplication in Datadog; normalize the service name in clients that may be calling redemption so that it matches the service name being reported to datadog by the redemption system
  • Loading branch information
rurounijones authored Oct 2, 2024
1 parent 3c7a75c commit 6d5c4dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/degica_datadog/tracing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@ def init(rake_tasks: [])
Datadog::Tracing::Pipeline::SpanFilter.new do |span|
span.service == "collector.newrelic.com"
end,
# Group subdomains in service tags together.
# Group external subdomains in service tags or komoju environments together.
Datadog::Tracing::Pipeline::SpanProcessor.new do |span|
span.service = "myshopify.com" if span.service.end_with?("myshopify.com")
span.service = "ngrok.io" if span.service.end_with?("ngrok.io")
span.service = "ngrok-free.app" if span.service.end_with?("ngrok-free.app")
span.service = "redemption" if span.service.match /.*redemption.*komoju\.com/
end,
# Set service tags for AWS services.
Datadog::Tracing::Pipeline::SpanProcessor.new do |span|
Expand Down

0 comments on commit 6d5c4dc

Please sign in to comment.