appsignal 0.11.0.beta.1 → 0.11.0.beta.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63d0b9ad8e612b7cada5847340bb81082f031832
|
4
|
+
data.tar.gz: 78e3cdba200a431b45022b8c66e199a7333ff9f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c58a90d4aa99cd4037c42a572f1db0feeccd1faddef9cfc521ab7d5c401fcc5694cd4cf20a1e59bda2dcda8f030eac0b55d8d0a7827ec1cf68d0e7a6790c5724
|
7
|
+
data.tar.gz: 4ad72753a5ae524a1b8698e7fed5a5b5f353c16c98ccc0c4a384140dee6524a89ef1895e4cbb636468277a397a93345291f6a1c0ede8d8d39eba7575b948a23b
|
@@ -55,6 +55,11 @@ class Appsignal::Event::MopedEvent < Appsignal::Event
|
|
55
55
|
:update => sanitize(payload.update),
|
56
56
|
:flags => payload.flags,
|
57
57
|
}
|
58
|
+
when 'Moped::Protocol::KillCursors'
|
59
|
+
{
|
60
|
+
:type => 'KillCursors',
|
61
|
+
:number_of_cursor_ids => payload.number_of_cursor_ids
|
62
|
+
}
|
58
63
|
else
|
59
64
|
{
|
60
65
|
:type => payload.class.to_s.gsub('Moped::Protocol::', ''),
|
data/lib/appsignal/version.rb
CHANGED
@@ -122,33 +122,33 @@ describe Appsignal::Event::MopedEvent do
|
|
122
122
|
end
|
123
123
|
end
|
124
124
|
|
125
|
-
context "Moped::Protocol::
|
125
|
+
context "Moped::Protocol::KillCursors" do
|
126
126
|
let(:payload) do
|
127
127
|
double(
|
128
|
-
:
|
129
|
-
:class => double(:to_s => 'Moped::Protocol::
|
128
|
+
:number_of_cursor_ids => 2,
|
129
|
+
:class => double(:to_s => 'Moped::Protocol::KillCursors')
|
130
130
|
)
|
131
131
|
end
|
132
132
|
|
133
133
|
it "should transform the payload" do
|
134
134
|
expect( event.payload_from_op(payload) ).to eq(
|
135
|
-
:type
|
136
|
-
:
|
135
|
+
:type => "KillCursors",
|
136
|
+
:number_of_cursor_ids => 2
|
137
137
|
)
|
138
138
|
end
|
139
139
|
end
|
140
140
|
|
141
|
-
context "Moped::Protocol::
|
141
|
+
context "Moped::Protocol::Other" do
|
142
142
|
let(:payload) do
|
143
143
|
double(
|
144
144
|
:full_collection_name => 'database.collection',
|
145
|
-
:class => double(:to_s => 'Moped::Protocol::
|
145
|
+
:class => double(:to_s => 'Moped::Protocol::Other')
|
146
146
|
)
|
147
147
|
end
|
148
148
|
|
149
149
|
it "should transform the payload" do
|
150
150
|
expect( event.payload_from_op(payload) ).to eq(
|
151
|
-
:type => "
|
151
|
+
:type => "Other",
|
152
152
|
:database => "database.collection"
|
153
153
|
)
|
154
154
|
end
|