appsignal 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -2
- data/lib/appsignal/cli/demo.rb +1 -1
- data/lib/appsignal/cli/install.rb +1 -1
- data/lib/appsignal/transaction.rb +2 -1
- data/lib/appsignal/version.rb +1 -1
- data/spec/lib/appsignal/capistrano3_spec.rb +2 -3
- data/spec/lib/appsignal/transaction_spec.rb +27 -17
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71dba256de2f6e7c3fef2638fe3ff22ac1867734
|
4
|
+
data.tar.gz: 19afcda8d5855a43912aee21e4953744990ae96f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4abc56838105533b0384f14889fc80af1898bc4744b60f4d55ea7524cfccfaf1052bb9e1c88da98c8840b4f72956ec1e2c854af9a845d6d61e14121183dfb8e1
|
7
|
+
data.tar.gz: fe65746d9243bfc5393519b1d23c0beeefc7c0ed53588043a3b95b0c16a66a2372a2472775d4cd9ba0dc60395cecf32c72c28457ea664ee33dce59c9e659d2e4
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
+
# 2.0.6
|
2
|
+
* Fix `Appsignal::Transaction#record_event` method call. PR #240
|
3
|
+
|
1
4
|
# 2.0.5
|
2
|
-
* Improved logging for agent connection issues
|
3
|
-
|
5
|
+
* Improved logging for agent connection issues. Commit
|
6
|
+
cdf9d3286d704e22473eb901c839cab4fab45a6f
|
7
|
+
* Handle nil request/environments in transactions. PR #231
|
4
8
|
|
5
9
|
# 2.0.4
|
6
10
|
* Use consistent log format for both file and STDOUT logs. PR #203
|
data/lib/appsignal/cli/demo.rb
CHANGED
@@ -10,7 +10,7 @@ module Appsignal
|
|
10
10
|
puts "Sending demonstration sample data..."
|
11
11
|
if Appsignal::Demo.transmit
|
12
12
|
puts "Demonstration sample data sent!"
|
13
|
-
puts "It may take about a minute for the data to appear on
|
13
|
+
puts "It may take about a minute for the data to appear on https://appsignal.com/accounts"
|
14
14
|
else
|
15
15
|
puts "Error: Unable to start the AppSignal agent and send data to AppSignal.com"
|
16
16
|
puts "Please use `appsignal diagnose` to debug your configuration."
|
@@ -204,7 +204,7 @@ module Appsignal
|
|
204
204
|
puts " Sending example data to AppSignal..."
|
205
205
|
if Appsignal::Demo.transmit
|
206
206
|
puts " Example data sent!"
|
207
|
-
puts " It may take about a minute for the data to appear on
|
207
|
+
puts " It may take about a minute for the data to appear on https://appsignal.com/accounts"
|
208
208
|
puts
|
209
209
|
puts " Please return to your browser and follow the instructions."
|
210
210
|
else
|
@@ -213,7 +213,8 @@ module Appsignal
|
|
213
213
|
title || BLANK,
|
214
214
|
body || BLANK,
|
215
215
|
duration,
|
216
|
-
body_format || Appsignal::EventFormatter::DEFAULT
|
216
|
+
body_format || Appsignal::EventFormatter::DEFAULT,
|
217
|
+
self.class.garbage_collection_profiler.total_time
|
217
218
|
)
|
218
219
|
end
|
219
220
|
|
data/lib/appsignal/version.rb
CHANGED
@@ -3,9 +3,8 @@ if DependencyHelper.capistrano3_present?
|
|
3
3
|
require 'capistrano/deploy'
|
4
4
|
require 'appsignal/capistrano'
|
5
5
|
|
6
|
-
include Capistrano::DSL
|
7
|
-
|
8
6
|
describe "Capistrano 3 integration" do
|
7
|
+
let(:capistrano) { Class.new.extend(Capistrano::DSL) }
|
9
8
|
let(:config) { project_fixture_config }
|
10
9
|
let(:out_stream) { std_stream }
|
11
10
|
let(:output) { out_stream.read }
|
@@ -26,7 +25,7 @@ if DependencyHelper.capistrano3_present?
|
|
26
25
|
|
27
26
|
def run
|
28
27
|
capture_std_streams(out_stream, out_stream) do
|
29
|
-
invoke('appsignal:deploy')
|
28
|
+
capistrano.invoke('appsignal:deploy')
|
30
29
|
end
|
31
30
|
end
|
32
31
|
|
@@ -466,21 +466,29 @@ describe Appsignal::Transaction do
|
|
466
466
|
|
467
467
|
describe "#start_event" do
|
468
468
|
it "should start the event in the extension" do
|
469
|
-
transaction.ext.
|
469
|
+
expect(transaction.ext).to receive(:start_event).with(0).and_call_original
|
470
470
|
|
471
471
|
transaction.start_event
|
472
472
|
end
|
473
473
|
end
|
474
474
|
|
475
475
|
describe "#finish_event" do
|
476
|
+
let(:fake_gc_time) { 123 }
|
477
|
+
before do
|
478
|
+
described_class.garbage_collection_profiler
|
479
|
+
.should_receive(:total_time)
|
480
|
+
.at_least(:once)
|
481
|
+
.and_return(fake_gc_time)
|
482
|
+
end
|
483
|
+
|
476
484
|
it "should finish the event in the extension" do
|
477
485
|
transaction.ext.should_receive(:finish_event).with(
|
478
486
|
'name',
|
479
487
|
'title',
|
480
488
|
'body',
|
481
489
|
1,
|
482
|
-
|
483
|
-
)
|
490
|
+
fake_gc_time
|
491
|
+
).and_call_original
|
484
492
|
|
485
493
|
transaction.finish_event(
|
486
494
|
'name',
|
@@ -496,8 +504,8 @@ describe Appsignal::Transaction do
|
|
496
504
|
'',
|
497
505
|
'',
|
498
506
|
0,
|
499
|
-
|
500
|
-
)
|
507
|
+
fake_gc_time
|
508
|
+
).and_call_original
|
501
509
|
|
502
510
|
transaction.finish_event(
|
503
511
|
'name',
|
@@ -506,25 +514,26 @@ describe Appsignal::Transaction do
|
|
506
514
|
nil
|
507
515
|
)
|
508
516
|
end
|
509
|
-
|
510
|
-
it "should add garbage collection time" do
|
511
|
-
allow_any_instance_of(Appsignal::GarbageCollectionProfiler)
|
512
|
-
.to receive(:internal_profiler)
|
513
|
-
.and_return(FakeGCProfiler.new(0.12345))
|
514
|
-
|
515
|
-
transaction.finish_event('name', nil, nil, nil)
|
516
|
-
end
|
517
517
|
end
|
518
518
|
|
519
519
|
describe "#record_event" do
|
520
|
+
let(:fake_gc_time) { 123 }
|
521
|
+
before do
|
522
|
+
described_class.garbage_collection_profiler
|
523
|
+
.should_receive(:total_time)
|
524
|
+
.at_least(:once)
|
525
|
+
.and_return(fake_gc_time)
|
526
|
+
end
|
527
|
+
|
520
528
|
it "should record the event in the extension" do
|
521
529
|
transaction.ext.should_receive(:record_event).with(
|
522
530
|
'name',
|
523
531
|
'title',
|
524
532
|
'body',
|
525
533
|
1000,
|
526
|
-
1
|
527
|
-
|
534
|
+
1,
|
535
|
+
fake_gc_time
|
536
|
+
).and_call_original
|
528
537
|
|
529
538
|
transaction.record_event(
|
530
539
|
'name',
|
@@ -541,8 +550,9 @@ describe Appsignal::Transaction do
|
|
541
550
|
'',
|
542
551
|
'',
|
543
552
|
1000,
|
544
|
-
0
|
545
|
-
|
553
|
+
0,
|
554
|
+
fake_gc_time
|
555
|
+
).and_call_original
|
546
556
|
|
547
557
|
transaction.record_event(
|
548
558
|
'name',
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appsignal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Beekman
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-01-
|
12
|
+
date: 2017-01-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
@@ -332,7 +332,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
332
332
|
version: '0'
|
333
333
|
requirements: []
|
334
334
|
rubyforge_project:
|
335
|
-
rubygems_version: 2.
|
335
|
+
rubygems_version: 2.5.2
|
336
336
|
signing_key:
|
337
337
|
specification_version: 4
|
338
338
|
summary: Logs performance and exception data from your app to appsignal.com
|
@@ -432,4 +432,3 @@ test_files:
|
|
432
432
|
- spec/support/project_fixture/log/.gitkeep
|
433
433
|
- spec/support/rails/my_app.rb
|
434
434
|
- spec/support/stubs/delayed_job.rb
|
435
|
-
has_rdoc:
|