builder_apm 0.2.1 → 0.2.2

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
  SHA256:
3
- metadata.gz: 274458c5c8b14edbf9269ed80ed646e5eae7b20dd26757ab0e89e2218ff1f94f
4
- data.tar.gz: 181f657ae560ae0d5697c5017f8e3e6f751ddfeb36ce1a87bf9ad2a2b82fbd2e
3
+ metadata.gz: fb49aa255e318beaebed1eb541cd8bf1cf01bd8f5afe9b6ece98323f76952f42
4
+ data.tar.gz: c1f282761fa25d4ab0d9ffcdc0a8f8d29932e0696d20a2cede3342cfb8eee6d6
5
5
  SHA512:
6
- metadata.gz: 4ad3669d45c8ca1adfbea69f706e464a2841abf009785a496cf1756a3dabc312ec9f654f607ff43ba60983ca02c6a6ca62c8eb3eb0badb30c5fb2f2ad9f8abcd
7
- data.tar.gz: 6ef78f15c27b19f5e731c712a295884df52060bc7e1db4c5fedd86a6990f6bc78c07cb00541d6ba10008c93849278bbc16b792dafc4f5a4b4fb23e48dc7a6549
6
+ metadata.gz: f9ed786df7a7531c8b79a314069bfcfde5a773520b1a603b605096feff55696bdde7b4aba8ab710e5ef9f11782a41ee391de62f0b5237b0273582d3b396aa5cd
7
+ data.tar.gz: 25fbcc9f411b55dd3aecf5b593b64d776df83f90b06208c7045daeaf16be8c63e5fec2b452ec664ee212b2c8e8ab23c065f8a47ff3722467bbac6a3f0194de8c
@@ -11,7 +11,9 @@ body {
11
11
  padding: 10px;
12
12
  margin-bottom: 20px;
13
13
  }
14
-
14
+ .version {
15
+ font-size:14px;
16
+ }
15
17
  #navbar {
16
18
  background-color: #333;
17
19
  overflow: hidden;
@@ -36,7 +36,7 @@ $(document).ready(function() {
36
36
  </script>
37
37
  </head>
38
38
  <body>
39
- <h1 id="header">BuilderApm Dashboard</h1>
39
+ <h1 id="header">BuilderApm Dashboard<span class="version"> (<%= BuilderApm::VERSION %>)</span></h1>
40
40
  <nav id="navbar">
41
41
  <ul>
42
42
  <li><%= link_to 'Dashboard', dashboard_path, class: ("active" if current_page?(dashboard_path)) %></li>
@@ -11,12 +11,9 @@ module BuilderApm
11
11
  Thread.current["request_id"] = request_id
12
12
  start_time = Time.now.to_f * 1000
13
13
 
14
- begin
15
- @status, @headers, @response = @app.call(env)
16
- rescue => e
17
- handle_exception(e, start_time, request_id)
18
- raise e
19
- end
14
+ @status, @headers, @response = @app.call(env)
15
+
16
+ ensure
20
17
 
21
18
  end_time = Time.now.to_f * 1000
22
19
  handle_timing(start_time, end_time, request_id)
@@ -40,17 +37,6 @@ module BuilderApm
40
37
  @redis_client.set("builder_apm:Request:#{data[:request_id]}", data.to_json)
41
38
  end
42
39
  end
43
-
44
- def handle_exception(e, start_time, request_id)
45
- end_time = Time.now.to_f * 1000
46
-
47
- data = Thread.current['request_data'] || {}
48
- data[:exception_class] = e.class.to_s
49
- data[:exception_message] = e.message
50
- data[:exception_backtrace] = e.backtrace
51
-
52
- handle_timing(start_time, end_time, request_id)
53
- end
54
40
  end
55
41
  end
56
42
  end
@@ -1,3 +1,3 @@
1
1
  module BuilderApm
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: builder_apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Ketelle