cassie 1.0.0.beta.9 → 1.0.0.beta.10

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
  SHA1:
3
- metadata.gz: 5fb40ba591759b33fcb5106d92f67912f0be919d
4
- data.tar.gz: 37d14ebb290bab5fce9838d66a2954b911a57ef2
3
+ metadata.gz: 4c4bd3ce069a0aa0162db5de8c03ee8c667187a7
4
+ data.tar.gz: 9234ac937b3c325ec51bcc8b7d36a7d5e6b812a6
5
5
  SHA512:
6
- metadata.gz: 408565af99b5bff70f546b5a82754c5f06afb2466633af9cb6efa3ef49d8281acd89d9a8adfe31d91835c6986295614b6b5024b7a14cb7cdfaa38468fb3f0975
7
- data.tar.gz: 23bd7e7de8ea1c7f9e757d32a24b35ec7d3557266a709ab1adb668fbde411ede108c64b8bfb0a8bae8e7e8867263fb4a52a3d103766a99323542631cdec0af29
6
+ metadata.gz: cbe3b6533a6e593c809a5341ee63ff7b4e253a813d4e604de2fae52c6c52effebb424a6bff8a9d3d00462f5bb2f799c6f4d0d68f5393599bef76a52cdbc7b0c1
7
+ data.tar.gz: 5c086108d5be950ccdb835d45dcd6be7fe8997ed6ced4bf50076653879d77bbda0594400d7a020511f18b7e960b4c9d29721fff2e7ed0bc56a538b866219eb6c
@@ -4,7 +4,7 @@ module Cassie::Queries::Instrumentation
4
4
  protected
5
5
 
6
6
  def build_resources(rows)
7
- instrumenter.instrument("cassie.cql.execution.loading") do |payload|
7
+ instrumenter.instrument("cassie.building_resources") do |payload|
8
8
  payload[:count] = rows.count if rows.respond_to?(:count)
9
9
  super
10
10
  end
@@ -1,5 +1,5 @@
1
1
  module Cassie::Queries::Logging
2
- class CqlExecutionLoadingEvent < ActiveSupport::Notifications::Event
2
+ class BuildingResourcesEvent < ActiveSupport::Notifications::Event
3
3
 
4
4
  def count
5
5
  payload[:count]
@@ -7,7 +7,7 @@ module Cassie::Queries::Logging
7
7
 
8
8
  def message
9
9
  {
10
- event: "cassie.cql.execution.loading",
10
+ event: "cassie.building_resources",
11
11
  duration: duration.round(1),
12
12
  count: count
13
13
  }.extend(Inspector)
@@ -1,5 +1,5 @@
1
1
  require_relative 'cql_execution_event'
2
- require_relative 'cql_execution_loading_event'
2
+ require_relative 'building_resources_event'
3
3
 
4
4
  module Cassie::Queries::Logging
5
5
  module Subscription
@@ -13,10 +13,10 @@ module Cassie::Queries::Logging
13
13
  end
14
14
  end
15
15
 
16
- ActiveSupport::Notifications.subscribe('cassie.cql.execution.loading') do |*args|
16
+ ActiveSupport::Notifications.subscribe('cassie.building_resources') do |*args|
17
17
  # don't log if instrumentation failed
18
18
  unless args.last[:exception]
19
- logger.debug(CqlExecutionLoadingEvent.new(*args).message)
19
+ logger.debug(BuildingResourcesEvent.new(*args).message)
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cassie
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta.9
4
+ version: 1.0.0.beta.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Prothro
@@ -129,8 +129,8 @@ files:
129
129
  - lib/cassie/queries/instrumentation/execution.rb
130
130
  - lib/cassie/queries/instrumentation/loading.rb
131
131
  - lib/cassie/queries/logging.rb
132
+ - lib/cassie/queries/logging/building_resources_event.rb
132
133
  - lib/cassie/queries/logging/cql_execution_event.rb
133
- - lib/cassie/queries/logging/cql_execution_loading_event.rb
134
134
  - lib/cassie/queries/logging/subscription.rb
135
135
  - lib/cassie/queries/statement.rb
136
136
  - lib/cassie/queries/statement/assignment.rb