instana 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/instana/tracer.rb +9 -1
- data/lib/instana/tracing/trace.rb +2 -1
- data/lib/instana/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44dfa9b5e6bf4088a5d81a201a997e64f3b1feaa
|
4
|
+
data.tar.gz: e25c83640f80026b17ae78c53534a730c4253f00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 969b07b8f027aaf3dacc2453f8ad0775eec5d028a625874602cb9d283682227443a9f5e32d9a31b2c377878d12b29a7326dea3cd1f659b52d3bdeb8cfa6ce0cd
|
7
|
+
data.tar.gz: 607287d232068842330e7e0ac8d959d6e4d55b58870fad5a21b3df69e513f1ae833493b39ed87392ecab2d5c017e051da454b627f7c0ed189f2c9bbbe01a2884
|
data/lib/instana/tracer.rb
CHANGED
@@ -148,7 +148,11 @@ module Instana
|
|
148
148
|
# @return [String]
|
149
149
|
#
|
150
150
|
def id_to_header(id)
|
151
|
-
id.
|
151
|
+
unless id.is_a?(Integer) || id.is_a?(String)
|
152
|
+
Instana.logger.debug "id_to_header received a #{id.class}: returning empty string"
|
153
|
+
return String.new
|
154
|
+
end
|
155
|
+
id.to_i.to_s(16)
|
152
156
|
end
|
153
157
|
|
154
158
|
# Convert a received header value into a valid ID
|
@@ -158,6 +162,10 @@ module Instana
|
|
158
162
|
# @return [Integer]
|
159
163
|
#
|
160
164
|
def header_to_id(header_id)
|
165
|
+
if !header_id.is_a?(String)
|
166
|
+
Instana.logger.debug "header_to_id received a #{header_id.class}: returning 0"
|
167
|
+
return 0
|
168
|
+
end
|
161
169
|
header_id.to_i(16)
|
162
170
|
end
|
163
171
|
|
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: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Giacomo Lombardo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|