zuora_observability 0.1.0.pre.d → 0.1.0.pre.e

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: f4a7c9aeb569ef2885c3f8b298771323d5a2619340b47e390d790966794b67df
4
- data.tar.gz: 417163de43f269d1c5f82e2bf1c09c5066a5f752bc8e4d77d6bf27435de1d137
3
+ metadata.gz: dcbd6a64b3460c7d1fb1e0c3421cf3d069b7e262f1917f46626781dc65ed7b9c
4
+ data.tar.gz: 503c94fd83f0153da289732fd846b217f11cfaef45af2ef45b5446545a258919
5
5
  SHA512:
6
- metadata.gz: e8435b4a4aa06bebf6d0924c8f39d71da9b96debf12582e0b92d147389e8072c8bcc40c13e2978a81cc7c8b0da9efcb540e3fa864a91e90f0b001b76d0c45667
7
- data.tar.gz: a2adea8aef5fc82317077e4f68eb7061c66ca53991a545642deac1f5367cf35dfbae329fe83ee6feb3aa727e958cc0c6d7cae27c9062852affe29f8048ca6227
6
+ metadata.gz: d2144fb2fb982c5611e4274eebb6f7eb61f0894205dec5bf43f723a72855dc10aad1243834387d5db4406261c1efe7391f96290a7a0c6b82e8ce3371c2aa241a
7
+ data.tar.gz: a3d5d771eeb3eb143bb50ab223e5b643c0e6c1573a7a99f022b0dabdbfb1090d961078011ad44e7c7ba9714ecb94ead7ed0a63170df88685d56fd11d6b44bd17
@@ -17,8 +17,7 @@ module ZuoraObservability
17
17
  end
18
18
 
19
19
  def app_name
20
- # parent_name is deprecated in Rails 6.0, removed in 6.1
21
- ENV['DEIS_APP'].presence || Rails.application.class.parent_name
20
+ ENV['DEIS_APP'].presence || app_parent_name
22
21
  end
23
22
 
24
23
  def pod_name
@@ -40,6 +39,16 @@ module ZuoraObservability
40
39
  end
41
40
  return p_type
42
41
  end
42
+
43
+ private
44
+
45
+ def app_parent_name
46
+ if Rails::VERSION::MAJOR >= 6 && Rails::VERSION::MINOR >= 1
47
+ Rails.application.class.module_parent_name
48
+ else
49
+ Rails.application.class.parent_name
50
+ end
51
+ end
43
52
  end
44
53
  end
45
54
  end
@@ -37,13 +37,6 @@ module ZuoraObservability
37
37
  items.merge!({ headers: filtered_headers })
38
38
  end
39
39
 
40
- if Thread.current[:appinstance].present?
41
- items.merge!({connect_user: Thread.current[:appinstance].connect_user, new_session: Thread.current[:appinstance].new_session_message})
42
- if Thread.current[:appinstance].logitems.present? && Thread.current[:appinstance].logitems.class == Hash
43
- items.merge!(Thread.current[:appinstance].logitems)
44
- end
45
- end
46
-
47
40
  items
48
41
  end
49
42
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ZuoraObservability
4
- VERSION = '0.1.0-d'
4
+ VERSION = '0.1.0-e'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_observability
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.d
4
+ version: 0.1.0.pre.e
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hartley McGuire
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-12 00:00:00.000000000 Z
11
+ date: 2021-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lograge
@@ -140,16 +140,16 @@ dependencies:
140
140
  name: rubocop
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: '1.2'
145
+ version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - "~>"
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: '1.2'
152
+ version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rubocop-rails
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -168,16 +168,16 @@ dependencies:
168
168
  name: rubocop-rspec
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - "~>"
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
- version: 2.0.0.pre
173
+ version: '0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - "~>"
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
- version: 2.0.0.pre
180
+ version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: simplecov
183
183
  requirement: !ruby/object:Gem::Requirement