Skip to content

Commit

Permalink
Also override the service name for mysql2
Browse files Browse the repository at this point in the history
  • Loading branch information
sulami committed Jan 18, 2024
1 parent f6e4ab7 commit 4bb5d98
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 @@ -37,7 +37,8 @@ def init # rubocop:disable Metrics/AbcSize,Metrics/MethodLength
c.tracing.instrument :rack, request_queueing: true
c.tracing.instrument :rake
c.tracing.instrument :sidekiq, { tag_args: true }
c.tracing.instrument :active_record, service_name: "#{Config.service}-#{Config.environment}}"
c.tracing.instrument :active_record, service_name: "#{Config.service}-#{Config.environment}"
c.tracing.instrument :mysql2, service_name: "#{Config.service}-#{Config.environment}"

# All of these are HTTP clients.
c.tracing.instrument :ethon, split_by_domain: true
Expand Down

0 comments on commit 4bb5d98

Please sign in to comment.