signalfx-rails-instrumentation 0.1.2 → 0.1.3

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: 9f530dcc6c6cd74314f546073ba70a91bff98678
4
- data.tar.gz: 9314102c5f8bdc8fb9290a46f022316886b2c227
3
+ metadata.gz: 2d0f6b4826545fe97198f1e307b30b0b8a33d3d5
4
+ data.tar.gz: 435abb5fefa867a8b6f52012d5a0443744bb345e
5
5
  SHA512:
6
- metadata.gz: 626feb4a5083a0f11611305dde87275f002eee2e83c8f22b3a6c6f5cf4f016aa75c6dcafb4e4883b0b3585ffce413a2c6fe2b5d1e401aa548ab24da1042e227a
7
- data.tar.gz: 9f2fe1349af9b7d3cd7434e6f4b0c0113f06b4f1bc2049abb32a349eceeb0c5a6b69c32abbb07f313910f229ed2617d8e8bab9c57e02f4f7a1563b3881993eae
6
+ metadata.gz: 3f004fc01ca3e0353203474917b58cd3cf542e3db7b4616c6bbc503dbffab6683c47779d998a3f9706b8ce4d737cfdf1562768b565613a95d520741e5529663f
7
+ data.tar.gz: 983e80f0f8c1b03fb93c7c90b0ba7345ee3830ad6d4da2cbdb74845d8256558539166f5bbf79199d4972753913f8826fa0bdebe0a78cc2b21c4f58a8918d9811
@@ -30,12 +30,12 @@ module ActionController
30
30
  rack_span = Rails::Tracer::SpanHelpers.rack_span(payload)
31
31
  Rails::Tracer::Defer.add_parent(id, rack_span)
32
32
 
33
- path = payload.fetch(:path)
34
- name = "#{payload.fetch(:controller)}##{payload.fetch(:action)} #{event} #{path}"
33
+ path = payload.fetch(:path, 'unknown')
34
+ name = "#{payload.fetch(:controller, 'unknown')}##{payload.fetch(:action, 'unknown')} #{event} #{path}"
35
35
  tags = {
36
36
  'component' => COMPONENT,
37
37
  'span.kind' => 'client',
38
- 'http.method' => payload.fetch(:method),
38
+ 'http.method' => payload.fetch(:method, 'unknown'),
39
39
  'http.path' => path,
40
40
  }
41
41
 
@@ -62,16 +62,16 @@ module ActionController
62
62
  def process_action(tracer: OpenTracing.global_tracer, active_span: nil, args: {})
63
63
  event, start, finish, id, payload = *args
64
64
 
65
- path = payload.fetch(:path)
66
- name = "#{payload.fetch(:controller)}##{payload.fetch(:action)} #{path}"
65
+ path = payload.fetch(:path, 'unknown')
66
+ name = "#{payload.fetch(:controller, 'unknown')}##{payload.fetch(:action, 'unknown')} #{path}"
67
67
  tags = {
68
68
  'component' => COMPONENT,
69
69
  'span.kind' => 'client',
70
- 'http.method' => payload.fetch(:method),
71
- 'http.status_code' => payload.fetch(:status),
70
+ 'http.method' => payload.fetch(:method, 'unknown'),
71
+ 'http.status_code' => payload.fetch(:status, 'unknown'),
72
72
  'http.path' => path,
73
- 'view.runtime' => payload.fetch(:view_runtime),
74
- 'db.runtime' => payload.fetch(:db_runtime),
73
+ 'view.runtime' => payload.fetch(:view_runtime, 'unknown'),
74
+ 'db.runtime' => payload.fetch(:db_runtime, 'unknown'),
75
75
  }
76
76
 
77
77
  if !Rails::Tracer::Defer.enabled
@@ -31,8 +31,8 @@ module ActionView
31
31
  tags = {
32
32
  'component' => COMPONENT,
33
33
  'span.kind' => 'client',
34
- 'template_path' => payload.fetch(:identifier),
35
- 'layout' => payload.fetch(:layout),
34
+ 'template_path' => payload.fetch(:identifier, 'unknown'),
35
+ 'layout' => payload.fetch(:layout, 'unknown'),
36
36
  }
37
37
 
38
38
  handle_notification(tracer: tracer,
@@ -50,7 +50,7 @@ module ActionView
50
50
  tags = {
51
51
  'component' => COMPONENT,
52
52
  'span.kind' => 'client',
53
- 'template_path' => payload.fetch(:identifier),
53
+ 'template_path' => payload.fetch(:identifier, 'unknown'),
54
54
  }
55
55
 
56
56
  handle_notification(tracer: tracer,
@@ -68,8 +68,8 @@ module ActionView
68
68
  tags = {
69
69
  'component' => COMPONENT,
70
70
  'span.kind' => 'client',
71
- 'template_path' => payload.fetch(:identifier),
72
- 'collection_size' => payload.fetch(:count),
71
+ 'template_path' => payload.fetch(:identifier, 'unknown'),
72
+ 'collection_size' => payload.fetch(:count, 'unknown'),
73
73
  }
74
74
 
75
75
  handle_notification(tracer: tracer,
data/rails-tracer.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "signalfx-rails-instrumentation"
7
- spec.version = "0.1.2"
7
+ spec.version = "0.1.3"
8
8
  spec.authors = ["iaintshine"]
9
9
  spec.email = ["bodziomista@gmail.com"]
10
10
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: signalfx-rails-instrumentation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - iaintshine
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-17 00:00:00.000000000 Z
11
+ date: 2019-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentracing