Skip to content

Commit

Permalink
fix bug connection_id
Browse files Browse the repository at this point in the history
  • Loading branch information
tetsu040e committed Aug 1, 2023
1 parent 25e267c commit 0514aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/aws-xray-sdk/facets/rails/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class << self

def record(transaction)
payload = transaction.payload
pool, conn = get_pool_n_conn(payload[:connection_id])
pool, conn = get_pool_n_conn(payload[:connection].object_id)

return if IGNORE_OPS.include?(payload[:name]) || pool.nil? || conn.nil?
# The spec notation is Rails < 6.1, later this can be found in the db_config
Expand Down

0 comments on commit 0514aff

Please sign in to comment.