appsignal 1.2.0.alpha.6 → 1.2.0.beta.1

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: 5b19aa58f8bb21f97a5e53b43d4d575277fcb7ea
4
- data.tar.gz: 6255c8a91577d197bffd822723fe0df508e509f7
3
+ metadata.gz: 1961ed742869bc42f46731ae2886077fcbe51a8a
4
+ data.tar.gz: 810e56cefb59bc34afaa86a1b00f0775dce15c80
5
5
  SHA512:
6
- metadata.gz: 33e5750249cf799943a5da8f1105ec64eff4cf47fb96728173c9ca2ceb61de510ee144349c3355a2717e144f58f38ccbfe8700409ddce8c545bfd8e9368adb4e
7
- data.tar.gz: e475154d66d79a1386d85d43f80b821b321e0dd5dd0afe105b813378267911dd066eddeda2f507fdcf8cfe5827224949105d0fe31650bf399f723fa684025476
6
+ metadata.gz: c5ea8ee5ce64e217f2ff6397f1c45a770738346d777b695cf4d6b435f8da1b691171e4992bf551a34a5f1de5295ff685607c49e817b7d67cf547b3b7d23027ca
7
+ data.tar.gz: 17a3d405e94a611a88019045a7a4d1d7dd71b9ece5c1d4348a83234e85a5715c279efe84a6e2f855cd2490275f7e2438fe8ec250853cfee566165406eb567dc6
@@ -1,15 +1,15 @@
1
1
  ---
2
- version: 397ec43
2
+ version: 9eb5938
3
3
  triples:
4
4
  x86_64-linux:
5
- checksum: 1d87e006f7fbb660736692bcad6585a93a1eeca2372f2b4acdf73b0b25e9cb3a
6
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/397ec43/appsignal-x86_64-linux-all-static.tar.gz
5
+ checksum: d66427bad79417552567527ccbba1be0984c22dd3d58857da69566d531ef2cd8
6
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/9eb5938/appsignal-x86_64-linux-all-static.tar.gz
7
7
  i686-linux:
8
- checksum: da7750ce6e8be1f559026a50557b478882a573e461f4c3475067aeba7b7a470b
9
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/397ec43/appsignal-i686-linux-all-static.tar.gz
8
+ checksum: 30fb48f9f28004bb4ca41e7af83efbe8781208e4d9dcc044df069dc74f894363
9
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/9eb5938/appsignal-i686-linux-all-static.tar.gz
10
10
  x86-linux:
11
- checksum: da7750ce6e8be1f559026a50557b478882a573e461f4c3475067aeba7b7a470b
12
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/397ec43/appsignal-i686-linux-all-static.tar.gz
11
+ checksum: 30fb48f9f28004bb4ca41e7af83efbe8781208e4d9dcc044df069dc74f894363
12
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/9eb5938/appsignal-i686-linux-all-static.tar.gz
13
13
  x86_64-darwin:
14
- checksum: a2f4846f6e573beb7df45ccab5a7ef80fc8a66aa02600301307a13810bd50984
15
- download_url: https://appsignal-agent-releases.global.ssl.fastly.net/397ec43/appsignal-x86_64-darwin-all-static.tar.gz
14
+ checksum: 356032a3c8f137481c19cb6b960117a2e11aeacbc7d663ae05e11e710bd3f6cd
15
+ download_url: https://appsignal-agent-releases.global.ssl.fastly.net/9eb5938/appsignal-x86_64-darwin-all-static.tar.gz
@@ -48,7 +48,7 @@ def install
48
48
  arch_config = AGENT_CONFIG['triples'][ARCH]
49
49
 
50
50
  unless File.exists?(ext_path('appsignal-agent')) &&
51
- File.exists?(ext_path(arch_config['lib_filename'])) &&
51
+ File.exists?(ext_path('libappsignal.a')) &&
52
52
  File.exists?(ext_path('appsignal_extension.h'))
53
53
  logger.info "Downloading agent release from #{arch_config['download_url']}"
54
54
 
@@ -90,6 +90,9 @@ def install
90
90
  end
91
91
  rescue => ex
92
92
  installation_failed "Exception while installing: #{ex}"
93
+ ex.backtrace.each do |line|
94
+ logger.error line
95
+ end
93
96
  end
94
97
 
95
98
  install
@@ -19,7 +19,7 @@ module Appsignal
19
19
  :enable_allocation_tracking => true,
20
20
  :enable_gc_instrumentation => false,
21
21
  :running_in_container => false,
22
- :collect_host_metrics => false
22
+ :enable_host_metrics => false
23
23
  }.freeze
24
24
 
25
25
  ENV_TO_KEY_MAPPING = {
@@ -42,7 +42,7 @@ module Appsignal
42
42
  'APPSIGNAL_ENABLE_GC_INSTRUMENTATION' => :enable_gc_instrumentation,
43
43
  'APPSIGNAL_RUNNING_IN_CONTAINER' => :running_in_container,
44
44
  'APPSIGNAL_WORKING_DIR_PATH' => :working_dir_path,
45
- 'APPSIGNAL_COLLECT_HOST_METRICS' => :collect_host_metrics
45
+ 'APPSIGNAL_ENABLE_HOST_METRICS' => :enable_host_metrics
46
46
  }.freeze
47
47
 
48
48
  attr_reader :root_path, :env, :initial_config, :config_hash
@@ -113,7 +113,7 @@ module Appsignal
113
113
  ENV['APPSIGNAL_IGNORE_ACTIONS'] = config_hash[:ignore_actions].join(',')
114
114
  ENV['APPSIGNAL_RUNNING_IN_CONTAINER'] = config_hash[:running_in_container].to_s
115
115
  ENV['APPSIGNAL_WORKING_DIR_PATH'] = config_hash[:working_dir_path] if config_hash[:working_dir_path]
116
- ENV['APPSIGNAL_COLLECT_HOST_METRICS'] = config_hash[:collect_host_metrics].to_s
116
+ ENV['APPSIGNAL_ENABLE_HOST_METRICS'] = config_hash[:enable_host_metrics].to_s
117
117
  end
118
118
 
119
119
  protected
@@ -172,7 +172,7 @@ module Appsignal
172
172
  %w(APPSIGNAL_ACTIVE APPSIGNAL_DEBUG APPSIGNAL_INSTRUMENT_NET_HTTP
173
173
  APPSIGNAL_SKIP_SESSION_DATA APPSIGNAL_ENABLE_FRONTEND_ERROR_CATCHING
174
174
  APPSIGNAL_ENABLE_ALLOCATION_TRACKING APPSIGNAL_ENABLE_GC_INSTRUMENTATION
175
- APPSIGNAL_RUNNING_IN_CONTAINER APPSIGNAL_COLLECT_HOST_METRICS).each do |var|
175
+ APPSIGNAL_RUNNING_IN_CONTAINER APPSIGNAL_ENABLE_HOST_METRICS).each do |var|
176
176
  if env_var = ENV[var]
177
177
  config[ENV_TO_KEY_MAPPING[var]] = env_var == 'true'
178
178
  end
@@ -1,5 +1,5 @@
1
1
  require 'yaml'
2
2
 
3
3
  module Appsignal
4
- VERSION = '1.2.0.alpha.6'
4
+ VERSION = '1.2.0.beta.1'
5
5
  end
@@ -34,7 +34,7 @@ describe Appsignal::Config do
34
34
  :enable_allocation_tracking => true,
35
35
  :enable_gc_instrumentation => false,
36
36
  :running_in_container => false,
37
- :collect_host_metrics => false
37
+ :enable_host_metrics => false
38
38
  }
39
39
  end
40
40
 
@@ -113,7 +113,7 @@ describe Appsignal::Config do
113
113
  ENV['APPSIGNAL_IGNORE_ACTIONS'].should == 'action1,action2'
114
114
  ENV['APPSIGNAL_RUNNING_IN_CONTAINER'].should == 'false'
115
115
  ENV['APPSIGNAL_WORKING_DIR_PATH'].should be_nil
116
- ENV['APPSIGNAL_COLLECT_HOST_METRICS'].should == 'false'
116
+ ENV['APPSIGNAL_ENABLE_HOST_METRICS'].should == 'false'
117
117
  end
118
118
 
119
119
  context "if working_dir_path is set" do
@@ -37,40 +37,44 @@ describe "extension loading and operation" do
37
37
  subject.stop
38
38
  end
39
39
 
40
- it "should have a start_transaction method" do
41
- subject.start_transaction('request_id', 'http_request')
42
- end
40
+ context "with a transaction" do
41
+ subject { Appsignal::Extension.start_transaction('request_id', 'http_request') }
43
42
 
44
- it "should have a start_event method" do
45
- subject.start_event(1)
46
- end
43
+ it "should have a start_event method" do
44
+ subject.start_event
45
+ end
47
46
 
48
- it "should have a finish_event method" do
49
- subject.finish_event(1, 'name', 'title', 'body', 0)
50
- end
47
+ it "should have a finish_event method" do
48
+ subject.finish_event('name', 'title', 'body', 0)
49
+ end
51
50
 
52
- it "should have a set_transaction_error method" do
53
- subject.set_transaction_error(1, 'name', 'message', '[backtrace]')
54
- end
51
+ it "should have a set_error method" do
52
+ subject.set_error('name', 'message', '[backtrace]')
53
+ end
55
54
 
56
- it "should have a set_transaction_sample_data method" do
57
- subject.set_transaction_sample_data(1, 'params', '{}')
58
- end
55
+ it "should have a set_sample_data method" do
56
+ subject.set_sample_data('params', '{}')
57
+ end
59
58
 
60
- it "should have a set_transaction_action method" do
61
- subject.set_transaction_action(1, 'value')
62
- end
59
+ it "should have a set_action method" do
60
+ subject.set_action('value')
61
+ end
63
62
 
64
- it "should have a set_transaction_queue_start method" do
65
- subject.set_transaction_queue_start(1, 10)
66
- end
63
+ it "should have a set_queue_start method" do
64
+ subject.set_queue_start(10)
65
+ end
67
66
 
68
- it "should have a set_transaction_metadata method" do
69
- subject.set_transaction_metadata(1, 'key', 'value')
70
- end
67
+ it "should have a set_metadata method" do
68
+ subject.set_metadata('key', 'value')
69
+ end
70
+
71
+ it "should have a finish method" do
72
+ subject.finish
73
+ end
71
74
 
72
- it "should have a finish_transaction method" do
73
- subject.finish_transaction(1)
75
+ it "should have a complete method" do
76
+ subject.complete
77
+ end
74
78
  end
75
79
 
76
80
  it "should have a set_gauge method" do
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: 1.2.0.alpha.6
4
+ version: 1.2.0.beta.1
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: 2016-06-10 00:00:00.000000000 Z
12
+ date: 2016-06-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack