instana 1.203.2 → 1.204.0.pre1

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: b2eef31bcb3f06d8ec7323f4e9093d6e332f73e101c1faf1f73e5d07a5593512
4
- data.tar.gz: c5d1af0df01f2c5f99955996cfe6f2fe969f47407522cecb945d47776ea053ee
3
+ metadata.gz: 99eb3bcbb6b1c801c556d28c7c9831d2bd65c6d17f07ae53ac6a9336dc423e41
4
+ data.tar.gz: '0804abf2466856db1597e10146865e8fa3bdb10db167dda3c850ac29ae7c44de'
5
5
  SHA512:
6
- metadata.gz: daca4cc08bbe967dbae87795dc90e5b54e72447ee05aa8ceafd1166bc8ada1f873d682c452e83d9bd47fff6fccf9b941adb82476acbf2bc96df110e488261640
7
- data.tar.gz: 971f5af221ccc75e6ad199e962a34e528cd1adaa07cf1cc7c5681a903cfefb8cf5aa536b97fb708cc0c40b969adc5cb330aa5e8f7c37de65a2bb3c1d6495c3ad
6
+ metadata.gz: d422c7e103d9839835aeac082b2a42fbbb1bf46f7b0f891ee065d4cbfda5de2257bc4e0470ded8768bb2bf52a6c717591b8f76b4183a09a31167d51faba44fb3
7
+ data.tar.gz: 6395be74fa6318c073abcd3b5c3e71022d59269b11accda6fef9996a7c3a5f21a353cde4afc6e766f414678c6992b21ad69474cce83fd7c025504f95e375187a
@@ -80,34 +80,16 @@ module Instana
80
80
  # @param limit [Integer] Limit the backtrace to the top <limit> frames
81
81
  #
82
82
  def add_stack(limit: 30, stack: Kernel.caller)
83
- frame_count = 0
84
- sanitized_stack = []
85
- @data[:stack] = []
86
- limit = 40 if limit > 40
87
-
88
- stack.each do |i|
89
- # If the stack has the full instana gem version in it's path
90
- # then don't include that frame. Also don't exclude the Rack module.
91
- if !i.match(/instana\/instrumentation\/rack.rb/).nil? ||
92
- (i.match(::Instana::VERSION_FULL).nil? && i.match('lib/instana/').nil?)
93
-
94
- x = i.split(':')
95
-
96
- sanitized_stack << {
97
- :c => x[0],
98
- :n => x[1],
99
- :m => x[2]
100
- }
101
- end
102
- end
103
-
104
- if sanitized_stack.length > limit
105
- # (limit * -1) gives us negative form of <limit> used for
106
- # slicing from the end of the list. e.g. stack[-30, 30]
107
- @data[:stack] = sanitized_stack[limit*-1, limit]
108
- else
109
- @data[:stack] = sanitized_stack
110
- end
83
+ @data[:stack] = stack
84
+ .map do |call|
85
+ file, line, *method = call.split(':')
86
+
87
+ {
88
+ c: file,
89
+ n: line,
90
+ m: method.join(' ')
91
+ }
92
+ end.take(limit > 40 ? 40 : limit)
111
93
  end
112
94
 
113
95
  # Log an error into the span
@@ -2,6 +2,6 @@
2
2
  # (c) Copyright Instana Inc. 2016
3
3
 
4
4
  module Instana
5
- VERSION = "1.203.2"
5
+ VERSION = "1.204.0.pre1"
6
6
  VERSION_FULL = "instana-#{VERSION}"
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instana
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.203.2
4
+ version: 1.204.0.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Giacomo Lombardo
@@ -370,9 +370,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
370
370
  version: '2.1'
371
371
  required_rubygems_version: !ruby/object:Gem::Requirement
372
372
  requirements:
373
- - - ">="
373
+ - - ">"
374
374
  - !ruby/object:Gem::Version
375
- version: '0'
375
+ version: 1.3.1
376
376
  requirements: []
377
377
  rubygems_version: 3.1.6
378
378
  signing_key: