cassie 1.0.0.beta.9 → 1.0.0.beta.10
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c4bd3ce069a0aa0162db5de8c03ee8c667187a7
|
4
|
+
data.tar.gz: 9234ac937b3c325ec51bcc8b7d36a7d5e6b812a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
data/lib/cassie/queries/logging/{cql_execution_loading_event.rb → building_resources_event.rb}
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
module Cassie::Queries::Logging
|
2
|
-
class
|
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.
|
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 '
|
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.
|
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(
|
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.
|
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
|