instana 1.10.1-java → 1.10.2-java
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 +4 -4
- data/instana.gemspec +1 -1
- data/lib/instana/eum/eum-test.js.erb +13 -12
- data/lib/instana/eum/eum.js.erb +13 -10
- data/lib/instana/tracing/span.rb +8 -1
- data/lib/instana/tracing/span_context.rb +1 -1
- data/lib/instana/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e716dcf93b11c25ee83a4e0904ecc06973fa35977ee1228864e5b641c029a0d
|
|
4
|
+
data.tar.gz: 7c1e5da1f2475e3d517caa740116cd617ca47a79fc6b1ac6830e4eea019fd386
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 004c60e166e9bbb42468f79c4e9657656098ee5a0fe6716069029925815d2eca7060106d51c6459a27a6eb99836d24ff15cc7709377199fc769b3231273cfcd9
|
|
7
|
+
data.tar.gz: 771071609061b33f003300ab2e767b1c5cf357808ca4b0baa9c88a270a76ec36232f23ef22cdaba811759643f9c1999fa716781493a362be8f7042acc81bb339
|
data/instana.gemspec
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
<script
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
<script>
|
|
2
|
+
(function(c,e,f,k,g,h,b,a,d){c[g]||(c[g]=h,b=c[h]=function(){
|
|
3
|
+
b.q.push(arguments)},b.q=[],b.l=1*new Date,a=e.createElement(f),a.async=1,
|
|
4
|
+
a.src=k,a.setAttribute("crossorigin", "anonymous"),d=e.getElementsByTagName(f)[0],
|
|
5
|
+
d.parentNode.insertBefore(a,d))})(window,document,"script",
|
|
6
|
+
"//pink.instana.rocks/eum/eum.min.js","InstanaEumObject","ineum");
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
ineum('reportingUrl', 'https://pink.instana.rocks/eum/');
|
|
9
|
+
ineum('key', '<%=::Instana.config[:eum_api_key]%>');
|
|
10
|
+
ineum('traceId', '<%=::Instana.tracer.trace_id_header%>');
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
<% if !::Instana.config[:eum_baggage].empty? %>
|
|
13
|
+
<% ::Instana.config[:eum_baggage].each do |k, v| %>
|
|
14
|
+
ineum('meta', '<%=k%>', '<%=v%>');
|
|
15
|
+
<% end %>
|
|
14
16
|
<% end %>
|
|
15
|
-
<% end %>
|
|
16
17
|
</script>
|
data/lib/instana/eum/eum.js.erb
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
ineum('traceId', '<%=::Instana.tracer.trace_id_header%>');
|
|
2
|
+
(function(c,e,f,k,g,h,b,a,d){c[g]||(c[g]=h,b=c[h]=function(){
|
|
3
|
+
b.q.push(arguments)},b.q=[],b.l=1*new Date,a=e.createElement(f),a.async=1,
|
|
4
|
+
a.src=k,a.setAttribute("crossorigin", "anonymous"),d=e.getElementsByTagName(f)[0],
|
|
5
|
+
d.parentNode.insertBefore(a,d))})(window,document,"script",
|
|
6
|
+
"//eum.instana.io/eum.min.js","InstanaEumObject","ineum");
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
ineum('reportingUrl', 'https://eum-saas.instana.io');
|
|
9
|
+
ineum('key', '<%=::Instana.config[:eum_api_key]%>');
|
|
10
|
+
ineum('traceId', '<%=::Instana.tracer.trace_id_header%>');
|
|
11
|
+
|
|
12
|
+
<% if !::Instana.config[:eum_baggage].empty? %>
|
|
13
|
+
<% ::Instana.config[:eum_baggage].each do |k, v| %>
|
|
14
|
+
ineum('meta', '<%=k%>', '<%=v%>');
|
|
15
|
+
<% end %>
|
|
12
16
|
<% end %>
|
|
13
|
-
<% end %>
|
|
14
17
|
</script>
|
data/lib/instana/tracing/span.rb
CHANGED
|
@@ -34,7 +34,13 @@ module Instana
|
|
|
34
34
|
@data[:t] = parent_context.trace_id # Trace ID
|
|
35
35
|
@data[:s] = ::Instana::Util.generate_id # Span ID
|
|
36
36
|
@data[:p] = parent_context.span_id # Parent ID
|
|
37
|
-
|
|
37
|
+
|
|
38
|
+
if parent_context.baggage
|
|
39
|
+
@baggage = parent_ctx.baggage.dup
|
|
40
|
+
else
|
|
41
|
+
@baggage = nil
|
|
42
|
+
end
|
|
43
|
+
|
|
38
44
|
is_root = false
|
|
39
45
|
end
|
|
40
46
|
|
|
@@ -355,6 +361,7 @@ module Instana
|
|
|
355
361
|
# @return Value of the baggage item
|
|
356
362
|
#
|
|
357
363
|
def get_baggage_item(key)
|
|
364
|
+
return nil if @baggage.nil?
|
|
358
365
|
@baggage[key]
|
|
359
366
|
end
|
|
360
367
|
|
|
@@ -11,7 +11,7 @@ module Instana
|
|
|
11
11
|
# @param level [Integer] default 1
|
|
12
12
|
# @param baggage [Hash] baggage applied to this trace
|
|
13
13
|
#
|
|
14
|
-
def initialize(tid, sid, level = 1, baggage =
|
|
14
|
+
def initialize(tid, sid, level = 1, baggage = {})
|
|
15
15
|
@trace_id = tid
|
|
16
16
|
@span_id = sid
|
|
17
17
|
@level = level
|
data/lib/instana/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: instana
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.10.
|
|
4
|
+
version: 1.10.2
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- Peter Giacomo Lombardo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-09-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -273,8 +273,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
273
273
|
- !ruby/object:Gem::Version
|
|
274
274
|
version: '0'
|
|
275
275
|
requirements: []
|
|
276
|
-
|
|
277
|
-
rubygems_version: 2.7.9
|
|
276
|
+
rubygems_version: 3.0.6
|
|
278
277
|
signing_key:
|
|
279
278
|
specification_version: 4
|
|
280
279
|
summary: Ruby Distributed Tracing & Metrics Sensor for Instana
|