zuora_connect 2.0.9 → 2.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b24a9ba32a5abdc24f0f584fa8594badcbbeff9b0cbc01e2b0bc27711fb42f30
|
|
4
|
+
data.tar.gz: 6c3fae593669288134b56fbd3a70eefed970517f9d97998e6094ce393e32b14d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e9e349dc8e2eb545181f5ee57cccda158b8ae1c77b814c91a5203a37650f110bd6ad40b023d13fae6c2dee43d57e7ba85d25e1b094d6fc28ffe23ae82b46db29
|
|
7
|
+
data.tar.gz: 35d548e8de4dbba10c109202516b6778744d0f8b028cc450861be43ef306b69e3f86f5e92c2af2220a27e33c59d65342175b7299904421f9715d66f7c9192814
|
|
@@ -32,7 +32,11 @@ module ZuoraConnect
|
|
|
32
32
|
PaperTrail.whodunnit = "Backend" if defined?(PaperTrail)
|
|
33
33
|
if defined?(ElasticAPM) && ElasticAPM.running?
|
|
34
34
|
ElasticAPM.set_user("Backend")
|
|
35
|
-
ElasticAPM.
|
|
35
|
+
if ElasticAPM.respond_to?(:set_label)
|
|
36
|
+
ElasticAPM.set_label(:app_instance, self.id)
|
|
37
|
+
else
|
|
38
|
+
ElasticAPM.set_tag(:app_instance, self.id)
|
|
39
|
+
end
|
|
36
40
|
end
|
|
37
41
|
|
|
38
42
|
if INSTANCE_REFRESH_WINDOW > INSTANCE_REDIS_CACHE_PERIOD
|
|
@@ -196,8 +200,13 @@ module ZuoraConnect
|
|
|
196
200
|
tenants = self.task_data.fetch('tenant_ids', [])
|
|
197
201
|
organizations = self.task_data.fetch('organizations', [])
|
|
198
202
|
if defined?(ElasticAPM) && ElasticAPM.running?
|
|
199
|
-
ElasticAPM.
|
|
200
|
-
|
|
203
|
+
if ElasticAPM.respond_to?(:set_label)
|
|
204
|
+
ElasticAPM.set_label(:tenant_id, tenants.first)
|
|
205
|
+
ElasticAPM.set_label(:organization, organizations.first)
|
|
206
|
+
else
|
|
207
|
+
ElasticAPM.set_tag(:tenant_id, tenants.first)
|
|
208
|
+
ElasticAPM.set_tag(:organization, organizations.first)
|
|
209
|
+
end
|
|
201
210
|
end
|
|
202
211
|
self.logitem(item: {tenant_ids: tenants, organization: organizations})
|
|
203
212
|
|
|
@@ -8,8 +8,13 @@ module ZuoraConnect
|
|
|
8
8
|
#Skip session for api requests
|
|
9
9
|
Thread.current[:appinstance] = nil
|
|
10
10
|
request.session_options[:skip] = true
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
if defined?(ElasticAPM) && ElasticAPM.running?
|
|
12
|
+
if ElasticAPM.respond_to?(:set_label)
|
|
13
|
+
ElasticAPM.set_label(:trace_id, request.uuid) if defined?(ElasticAPM) && ElasticAPM.running?
|
|
14
|
+
else
|
|
15
|
+
ElasticAPM.set_tag(:trace_id, request.uuid) if defined?(ElasticAPM) && ElasticAPM.running?
|
|
16
|
+
end
|
|
17
|
+
end
|
|
13
18
|
start_time = Time.now
|
|
14
19
|
if request.headers["API-Token"].present?
|
|
15
20
|
@appinstance = ZuoraConnect::AppInstance.where(:api_token => request.headers["API-Token"]).first
|
|
@@ -80,7 +85,13 @@ module ZuoraConnect
|
|
|
80
85
|
end
|
|
81
86
|
|
|
82
87
|
def authenticate_connect_app_request
|
|
83
|
-
|
|
88
|
+
if defined?(ElasticAPM) && ElasticAPM.running?
|
|
89
|
+
if ElasticAPM.respond_to?(:set_label)
|
|
90
|
+
ElasticAPM.set_label(:trace_id, request.uuid)
|
|
91
|
+
else
|
|
92
|
+
ElasticAPM.set_tag(:trace_id, request.uuid)
|
|
93
|
+
end
|
|
94
|
+
end
|
|
84
95
|
Thread.current[:appinstance] = nil
|
|
85
96
|
start_time = Time.now
|
|
86
97
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zuora_connect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Connect Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-10-
|
|
11
|
+
date: 2019-10-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: apartment
|