diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2017-09-20 18:38:57 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-20 18:38:57 -0400 |
commit | 55e50f7c7819ee5d3234c47e34b5e20196ac24b7 (patch) | |
tree | 254aa2b31fe814bbf11f175750631d91257c1c6d /activerecord/lib/active_record | |
parent | aa0c8778dcd8ce7ab5aed082d7900e6ab87f1d91 (diff) | |
parent | fda9df7b4e328ed2bfc3dad05899ef6269495688 (diff) | |
download | rails-55e50f7c7819ee5d3234c47e34b5e20196ac24b7.tar.gz rails-55e50f7c7819ee5d3234c47e34b5e20196ac24b7.tar.bz2 rails-55e50f7c7819ee5d3234c47e34b5e20196ac24b7.zip |
Merge pull request #30619 from jagthedrummer/jeremy/instrumentation-payload-names
Update payload names for `sql.active_record` instrumentation to be more descriptive.
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/relation.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb index f6825e67d7..3517091a6e 100644 --- a/activerecord/lib/active_record/relation.rb +++ b/activerecord/lib/active_record/relation.rb @@ -63,7 +63,7 @@ module ActiveRecord @klass.connection.insert( im, - "SQL", + "#{@klass} Create", primary_key || false, primary_key_value, nil, @@ -86,7 +86,7 @@ module ActiveRecord @klass.connection.update( um, - "SQL", + "#{@klass} Update", ) end @@ -373,7 +373,7 @@ module ActiveRecord stmt.wheres = arel.constraints end - @klass.connection.update stmt, "SQL" + @klass.connection.update stmt, "#{@klass} Update All" end # Destroys the records by instantiating each @@ -432,7 +432,7 @@ module ActiveRecord stmt.wheres = arel.constraints end - affected = @klass.connection.delete(stmt, "SQL") + affected = @klass.connection.delete(stmt, "#{@klass} Destroy") reset affected |