rails-profiler 0.44.1 → 0.44.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f8024b8eccdfd4029d85e4a568c1d028593c5c8989a43d4039dc2eebd53ccc1
4
- data.tar.gz: d87d2df6c8a500c87a37e7ef63f60405d84ab991edc4b1026cead2b3ef5f3271
3
+ metadata.gz: 46e258e22691c87c97c16eb5587ae226dadfda20087792676cd50ee0f15b889d
4
+ data.tar.gz: 435872dcf60c9507d16a6f6ec2fa1a81cf9e9efa3932f9c2c32986cb3a084671
5
5
  SHA512:
6
- metadata.gz: 539a3bc784efa1fcd77792fded28e068301a137f7edce7a02653bf7953c364ed2663bf26bddd94758193b4ee3d3175e8c2eac62dcd6fdb9a6b6b16386298ad71
7
- data.tar.gz: 6435bd7567e394a131a7b7446ee6349e6f640644276bb590e8aeb6abfad31692d7b50c347ba2c7ddf7f2d81bcbb5e6ded22d3b0c1725c7ea0ea6cdb627efc243
6
+ metadata.gz: 22223777d66e003f222df2a4f6e043f65331948ac5a5efd84d090b508404ebb9baa97ebc438268ddee41767416ec32b869fd685d0a712e3180550d4548f8a994
7
+ data.tar.gz: 7c6c8f85a7aa7f9c00a54a03b5690ee1065da8d3e8cbd5eacf1b18be70fedf4cd824fee4cae336c48339a13749b83e92de4d14d8757a41938e9b65c3384ed3d2
data/CHANGELOG.md CHANGED
@@ -19,6 +19,16 @@ every commit of every tag interval is accounted for one way or the other.
19
19
 
20
20
  ## [Unreleased]
21
21
 
22
+ ## [0.44.2] - 2026-10-21
23
+
24
+ <!-- stamped -->
25
+
26
+ ### Fixed
27
+
28
+ - **Database:** A real query that contains a line starting with `COMMIT`, `BEGIN`, `ROLLBACK`,
29
+ `SAVEPOINT` or `RELEASE` is no longer hidden from the database and flamegraph collectors: only a
30
+ statement that is itself a transaction instruction is skipped, whatever the leading whitespace.
31
+
22
32
  ## [0.44.1] - 2026-10-21
23
33
 
24
34
  <!-- stamped -->
@@ -58,7 +58,7 @@ module Profiler
58
58
 
59
59
  # Skip schema queries and internal Rails queries
60
60
  next if payload[:name] == "SCHEMA"
61
- next if payload[:sql] =~ /^(BEGIN|COMMIT|ROLLBACK|SAVEPOINT|RELEASE)/i
61
+ next if payload[:sql] =~ /\A\s*(BEGIN|COMMIT|ROLLBACK|SAVEPOINT|RELEASE)\b/i
62
62
 
63
63
  query = Models::SqlQuery.new(
64
64
  sql: payload[:sql],
@@ -82,7 +82,7 @@ module Profiler
82
82
  # SQL queries
83
83
  @subscriptions << subscribe_notification("sql.active_record") do |_name, started, finished, _unique_id, payload|
84
84
  next if payload[:name] == "SCHEMA"
85
- next if payload[:sql] =~ /^(BEGIN|COMMIT|ROLLBACK|SAVEPOINT)/i
85
+ next if payload[:sql] =~ /\A\s*(BEGIN|COMMIT|ROLLBACK|SAVEPOINT|RELEASE)\b/i
86
86
 
87
87
  sql = payload[:sql].to_s
88
88
  add_event Models::TimelineEvent.new(
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Profiler
4
- VERSION = "0.44.1"
4
+ VERSION = "0.44.2"
5
5
 
6
6
  GEM_ROOT = File.expand_path("../..", __dir__)
7
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-profiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.44.1
4
+ version: 0.44.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Duplessy