logtail-rails 0.2.13 → 0.2.14

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: 199f2f2bf589ef69bbe057b16224aa71999e45e991e30eeda9533f11ce233c79
4
- data.tar.gz: 26603038e5aa56d21112ce259084999f4cf29df2eab4b1b411f13d0cef6ae246
3
+ metadata.gz: dbc8fb02a00988c89f406be59ac925eba90048afc392ac52c5efca571f835271
4
+ data.tar.gz: 8bb940e1915fd178e7cc6854415f345101ec74b9e441173464624ba94ac7ea5a
5
5
  SHA512:
6
- metadata.gz: fb36a1279648ec39acebf782e59b26441824b1222152ba76c44cc7454ae0593eaece3beca230d3e305ae803e4215c958a3f51e5cadb962ee3592060b45ed8357
7
- data.tar.gz: e267ac9f6488ec482c1b84035cb119e6062f3f335e03bedb8eff3cae3fd318a5a5e61dacc560acca8eb53870080a89add3006b7299454b4b2025d1b738d2a4a4
6
+ metadata.gz: e75cc0a7bd43ea6b8cccac45f8f4b3c74e0acea9b833ac14c6b77c1e5ad63fcbc35dc22d9a32b58a6ba41e7ce3b5f964a20b7a0bdc6df2ebc1a6bdfdb84194d0
7
+ data.tar.gz: 7b675f409e820c32dd256371157b155f5b7a902e91e188fe6be389bb139f9ba33797898c4ed43e407928fab5ac4237fd839c123edd3e45c7378467a787e8f9de
@@ -43,14 +43,16 @@ module Logtail
43
43
 
44
44
  private
45
45
 
46
- # Rails 8.2+ routes the framework's own instrumentation (controller calls, SQL queries,
47
- # template renders, ...) through Rails.event as well. The Rails log subscribers, and ours
48
- # replacing them, already log those, so only the application's own events are forwarded.
46
+ # Rails 8.1+ reports its own instrumentation (controller calls, SQL queries, template
47
+ # renders, ...) to Rails.event as well, through the ActiveSupport::StructuredEventSubscriber
48
+ # it attaches for each of its components. The Rails log subscribers, and ours replacing
49
+ # them, already log those, so only the application's own events are forwarded.
49
50
  def framework_event?(event)
50
- return false unless defined?(::ActiveSupport::EventReporter::LogSubscriber)
51
+ return false unless defined?(::ActiveSupport::StructuredEventSubscriber)
51
52
 
52
- ::ActiveSupport::EventReporter::LogSubscriber.descendants.any? do |log_subscriber|
53
- event[:name].start_with?("#{log_subscriber.namespace}.")
53
+ ::ActiveSupport::StructuredEventSubscriber.descendants.any? do |bridge|
54
+ # The namespace attach_to recorded is a private reader on ActiveSupport::Subscriber
55
+ event[:name].start_with?("#{bridge.send(:namespace)}.")
54
56
  end
55
57
  end
56
58
 
@@ -1,7 +1,7 @@
1
1
  module Logtail
2
2
  module Integrations
3
3
  module Rails
4
- VERSION = "0.2.13"
4
+ VERSION = "0.2.14"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logtail-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.13
4
+ version: 0.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Better Stack