Skip to content

Commit

Permalink
add sanitized_query
Browse files Browse the repository at this point in the history
  • Loading branch information
tetsu040e committed Aug 1, 2023
1 parent 313c036 commit 25e267c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/aws-xray-sdk/facets/rails/active_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def record(transaction)
pool.db_config.configuration_hash
end
name, sql = build_name_sql_meta config: db_config, conn: conn
sql[:sanitized_query] = payload[:sql]
subsegment = XRay.recorder.begin_subsegment name, namespace: 'remote'
# subsegment is nil in case of context missing
return if subsegment.nil?
Expand Down

0 comments on commit 25e267c

Please sign in to comment.