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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3dab15815d0d5714580ad0c16fee1e922b809746f3423b6245a0a97762e2edff
4
- data.tar.gz: 83fdd5e75c3137d8c53c25d3027bbf5a5b0398af3d685908679df4e47fb4ee26
3
+ metadata.gz: 93a8af58226aa905f51dfa17ead848e26e7fab57b3d605849a6255fb74787e79
4
+ data.tar.gz: 86af2549a8380102a88f383d139678a2e47b349e71947721476e14211e5942c0
5
5
  SHA512:
6
- metadata.gz: 62e192f63c9a7a13d90683e1a242d12dfc9d9f924a09ec189692f11498b986f011204b732cb9c66082cc3203751d2e0848dca4c68546f5a95d450df6a5aa3e8d
7
- data.tar.gz: bb68582ebc71784a353ac361af56fb9849f22034ed0fdd097c5fbf96bc3a552134f41e3dca011adf810aacd7c67b0a4aec1545e71ea4f33db26641dfa0e9b441
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
- given_arguments: job.arguments,
22
- instana_context: context ? context.to_hash : nil
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
- incoming_context = if job.arguments.is_a?(Array) && job.arguments.first.is_a?(Hash)
40
- instana_context = job.arguments.first[:instana_context]
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
 
@@ -2,6 +2,6 @@
2
2
  # (c) Copyright Instana Inc. 2016
3
3
 
4
4
  module Instana
5
- VERSION = "1.217.0"
5
+ VERSION = "1.217.1"
6
6
  VERSION_FULL = "instana-#{VERSION}"
7
7
  end
@@ -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.0
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-13 00:00:00.000000000 Z
11
+ date: 2024-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler