instana 1.209.3 → 1.209.5

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: 1ba4c4719f68be4f2764f82f2880f37a9a121ced7957ea2660383e6eb37745a6
4
- data.tar.gz: bbbc69a3de73ff922b33d67e5d11cb469518f7664636df4335b3ef7a903bc9af
3
+ metadata.gz: 9d6046b9ecf69be7ee6dbc4db6922d10cd731c10e6a9439cab442856fe169e5d
4
+ data.tar.gz: f5a2a1c8a7d011bc9a1abc3da001f3f8adf91407bf54724728f85590aff77940
5
5
  SHA512:
6
- metadata.gz: 9facbe9690a6bb7ef461b8e56def7a74fa1b31d8349ecb7baf1d385d23213cc29800499126e71dc2090e0261874cf6de27aae3301bbebe36486259dd0b13a0f8
7
- data.tar.gz: 4f962781ce7204792bddf1d9c8730c089511207dee880aecf68a17c7e3185f83a713639eade5b33e10d7bd99f7d52a151e95cc685143e0d50e262674d23670fa
6
+ metadata.gz: 19d223cebc5f38a3dd552eb7c188c51f815c2e340d83c0e214a748c1a464e9ff6488967ae583a6efba1a1552dc5249872c3993b2fb56e175ae399993301051d6
7
+ data.tar.gz: bc5dc0521fdc266c6e6f82559335a445f8c7e186b9405bfac93f5ceb028470405abad4a95391e3fea9864b413c3e1c6a16c43f06b3555a007bfe752893e67732
data/.circleci/config.yml CHANGED
@@ -1,21 +1,6 @@
1
1
  version: 2.1
2
2
 
3
3
  executors:
4
- ruby_26:
5
- docker:
6
- - image: cimg/ruby:2.6-node
7
- environment:
8
- MEMCACHED_HOST: '127.0.0.1:11211'
9
- REDIS_URL: 'redis://127.0.0.1:6379'
10
- DATABASE_URL: 'sqlite3::memory:'
11
- - image: memcached
12
- - image: redis
13
- - image: amazon/dynamodb-local
14
- - image: minio/minio:latest
15
- command: ["server", "/data"]
16
- - image: s12v/sns
17
- - image: softwaremill/elasticmq-native
18
- - image: mongo:5-focal
19
4
  ruby_27:
20
5
  docker:
21
6
  - image: cimg/ruby:2.7-node
@@ -31,19 +16,6 @@ executors:
31
16
  - image: s12v/sns
32
17
  - image: softwaremill/elasticmq-native
33
18
  - image: mongo:5-focal
34
- ruby_26_mysql2:
35
- docker:
36
- - image: cimg/ruby:2.6-node
37
- environment:
38
- DATABASE_URL: "mysql2://root@127.0.0.1:3306/ci_test"
39
- - image: mariadb
40
- environment:
41
- MYSQL_DATABASE: 'ci_test'
42
- MYSQL_USER: 'root'
43
- MYSQL_PASSWORD: ''
44
- MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
45
- MYSQL_ROOT_PASSWORD: ''
46
- MYSQL_ROOT_HOST: '%'
47
19
  ruby_27_mysql2:
48
20
  docker:
49
21
  - image: cimg/ruby:2.7-node
@@ -57,15 +29,6 @@ executors:
57
29
  MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
58
30
  MYSQL_ROOT_PASSWORD: ''
59
31
  MYSQL_ROOT_HOST: '%'
60
- ruby_26_postgres:
61
- docker:
62
- - image: cimg/ruby:2.6-node
63
- environment:
64
- DATABASE_URL: "postgres://postgres:test@127.0.0.1:5432/ci_test"
65
- - image: postgres
66
- environment:
67
- POSTGRES_PASSWORD: 'test'
68
- POSTGRES_DB: 'ci_test'
69
32
  ruby_27_postgres:
70
33
  docker:
71
34
  - image: cimg/ruby:2.7-node
@@ -213,7 +176,6 @@ workflows:
213
176
  parameters:
214
177
  stack:
215
178
  - ruby_27
216
- - ruby_26
217
179
  libraries:
218
180
  jobs:
219
181
  - test_apprisal:
@@ -221,7 +183,6 @@ workflows:
221
183
  parameters:
222
184
  stack:
223
185
  - ruby_27
224
- - ruby_26
225
186
  gemfile:
226
187
  - "./gemfiles/aws_30.gemfile"
227
188
  - "./gemfiles/cuba_30.gemfile"
@@ -252,11 +213,8 @@ workflows:
252
213
  parameters:
253
214
  stack:
254
215
  - ruby_27
255
- - ruby_26
256
216
  - ruby_27_postgres
257
- - ruby_26_postgres
258
217
  - ruby_27_mysql2
259
- - ruby_26_mysql2
260
218
  gemfile:
261
219
  - "./gemfiles/rails_60.gemfile"
262
220
  - "./gemfiles/rails_52.gemfile"
data/instana.gemspec CHANGED
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.require_paths = ["lib"]
32
32
  spec.test_files = Dir.glob("{test}/**/*.rb")
33
33
 
34
- spec.required_ruby_version = '>= 2.1'
34
+ spec.required_ruby_version = '>= 2.7'
35
35
  spec.platform = defined?(JRUBY_VERSION) ? 'java' : Gem::Platform::RUBY
36
36
 
37
37
  spec.add_development_dependency "bundler", "~> 2.0"
@@ -111,7 +111,8 @@ module Instana
111
111
  proc_table = Sys::ProcTable.ps(pid: Process.pid)
112
112
  process = ProcessInfo.new(proc_table)
113
113
  payload[:exec_args] = process.arguments
114
- payload[:memory] = {rss_size: process.memory_used}
114
+ payload[:memory] = {rss_size: process.memory_used / 1024} # Bytes to Kilobytes like in ruby_process.rb
115
+
115
116
  end
116
117
 
117
118
  if ::Instana.config[:metrics][:gc][:enabled]
@@ -49,7 +49,7 @@ module Instana
49
49
 
50
50
  def memory_used
51
51
  if RbConfig::CONFIG['host_os'].include?('darwin')
52
- rss / 1024
52
+ rss
53
53
  else
54
54
  rss * 4096
55
55
  end
@@ -2,6 +2,6 @@
2
2
  # (c) Copyright Instana Inc. 2016
3
3
 
4
4
  module Instana
5
- VERSION = "1.209.3"
5
+ VERSION = "1.209.5"
6
6
  VERSION_FULL = "instana-#{VERSION}"
7
7
  end
@@ -65,7 +65,7 @@ class ProcessInfoTest < Minitest::Test
65
65
  host_os = RbConfig::CONFIG['host_os']
66
66
  RbConfig::CONFIG['host_os'] = 'darwin'
67
67
 
68
- subject = Instana::Backend::ProcessInfo.new(OpenStruct.new(rss: 1024))
68
+ subject = Instana::Backend::ProcessInfo.new(OpenStruct.new(rss: 1))
69
69
  assert_equal 1, subject.memory_used
70
70
  ensure
71
71
  RbConfig::CONFIG['host_os'] = host_os
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.209.3
4
+ version: 1.209.5
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: 2023-03-13 00:00:00.000000000 Z
11
+ date: 2023-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -375,7 +375,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
375
375
  requirements:
376
376
  - - ">="
377
377
  - !ruby/object:Gem::Version
378
- version: '2.1'
378
+ version: '2.7'
379
379
  required_rubygems_version: !ruby/object:Gem::Requirement
380
380
  requirements:
381
381
  - - ">="