instana 1.217.0 → 1.217.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/instrumentation/active_job.rb +6 -8
- data/lib/instana/version.rb +1 -1
- data/test/frameworks/sinatra_test.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93a8af58226aa905f51dfa17ead848e26e7fab57b3d605849a6255fb74787e79
|
4
|
+
data.tar.gz: 86af2549a8380102a88f383d139678a2e47b349e71947721476e14211e5942c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3393c184331fa59069375678300b463fd038cca1c2996f95e416723690f1f119f0d4940af90997161278649d6353ae0e28ae03b2791126bcaa42bd32cf3a06d
|
7
|
+
data.tar.gz: f246ad9e3c63431aab1a244fbb88e7e1146ec91c35749253b7630e9fc5032a91b0db14b86ae091dca9f3a2c462cb8f0a1c0fcc53aaec0e9feb9516dcb5d7657c
|
@@ -17,10 +17,9 @@ module Instana
|
|
17
17
|
|
18
18
|
::Instana::Tracer.trace(:activejob, tags) do
|
19
19
|
context = ::Instana.tracer.context
|
20
|
-
job.arguments
|
21
|
-
|
22
|
-
|
23
|
-
}]
|
20
|
+
job.arguments.append({
|
21
|
+
instana_context: context ? context.to_hash : nil
|
22
|
+
})
|
24
23
|
|
25
24
|
block.call
|
26
25
|
end
|
@@ -35,10 +34,9 @@ module Instana
|
|
35
34
|
job_id: job.job_id
|
36
35
|
}
|
37
36
|
}
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
job.arguments = job.arguments.first[:given_arguments]
|
37
|
+
incoming_context = if job.arguments.is_a?(Array) && job.arguments.last.is_a?(Hash) && job.arguments.last.key?(:instana_context)
|
38
|
+
instana_context = job.arguments.last[:instana_context]
|
39
|
+
job.arguments.pop
|
42
40
|
instana_context ? ::Instana::SpanContext.new(instana_context[:trace_id], instana_context[:span_id]) : nil
|
43
41
|
end
|
44
42
|
|
data/lib/instana/version.rb
CHANGED
@@ -7,6 +7,7 @@ require 'rack/test'
|
|
7
7
|
class SinatraTest < Minitest::Test
|
8
8
|
include Rack::Test::Methods
|
9
9
|
APP = Rack::Builder.parse_file('test/support/apps/sinatra/config.ru')
|
10
|
+
|
10
11
|
sinatra_version = Gem::Specification.find_by_name('sinatra').version
|
11
12
|
if sinatra_version < Gem::Version.new('4.0.0')
|
12
13
|
APP = APP.first
|
@@ -18,8 +19,8 @@ class SinatraTest < Minitest::Test
|
|
18
19
|
|
19
20
|
def test_basic_get
|
20
21
|
clear_all!
|
21
|
-
|
22
22
|
r = get '/'
|
23
|
+
|
23
24
|
assert last_response.ok?
|
24
25
|
|
25
26
|
|
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.217.
|
4
|
+
version: 1.217.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: 2024-11-
|
11
|
+
date: 2024-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|