pyroscope 0.5.6-x86_64-linux → 0.5.8-x86_64-linux

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: 6bfd6e4b81434d17850d793c927e89f211fdf570931bbfeed1bdaadc7e7ff75c
4
- data.tar.gz: 4f26158284141c8cd37c299383406ebf254a8e63705ad81e7aa3637b20fc0038
3
+ metadata.gz: 28e448e1add6217b58e5a587c81f6a7f910b5195185a205097f3bcc885d6cb6c
4
+ data.tar.gz: b392cc9facde7b9477e48398dc746ab39663530fb6d3d25f7ea28ab09225bcc2
5
5
  SHA512:
6
- metadata.gz: 0f35f685a58bd9a5a368a0030ddcffb46f5eb63d86d21616c994041096a5298d3897431dcb87541a161f73c45bad1e6a64ec86059870072fd8fa656a914a5d5b
7
- data.tar.gz: 950364fb497ff639d34787f618003c408bad90f181e695629410d79ca6814c181948de2d7b73af0a411b42b7601b674680f157124e533a8fb2f57068fac650a4
6
+ metadata.gz: 3375f3fbd1ce0468b7cadb22f5bd3cee26ade2be85a531857aa27cb2f4c481c61f88a267b175da8cd93b30cdddbb1a34a0f0fd427d398b87b28783ca171092c7
7
+ data.tar.gz: 9bcbe5c38549b8671159df7c2ad63a6788e52119bc3bf52835decdd3f417a5c03fdfb80fd796712690dca6c68d93bddede6d95886ff49c505589e4c81b867dd0
data/ext/rbspy/Cargo.lock CHANGED
@@ -1245,9 +1245,9 @@ dependencies = [
1245
1245
 
1246
1246
  [[package]]
1247
1247
  name = "names"
1248
- version = "0.13.0"
1248
+ version = "0.14.0"
1249
1249
  source = "registry+https://github.com/rust-lang/crates.io-index"
1250
- checksum = "e7d66043b25d4a6cccb23619d10c19c25304b355a7dccd4a8e11423dd2382146"
1250
+ checksum = "7bddcd3bf5144b6392de80e04c347cd7fab2508f6df16a85fc496ecd5cec39bc"
1251
1251
  dependencies = [
1252
1252
  "clap 3.2.23",
1253
1253
  "rand 0.8.5",
@@ -1462,16 +1462,6 @@ dependencies = [
1462
1462
  "winapi",
1463
1463
  ]
1464
1464
 
1465
- [[package]]
1466
- name = "prost"
1467
- version = "0.10.4"
1468
- source = "registry+https://github.com/rust-lang/crates.io-index"
1469
- checksum = "71adf41db68aa0daaefc69bb30bcd68ded9b9abaad5d1fbb6304c4fb390e083e"
1470
- dependencies = [
1471
- "bytes",
1472
- "prost-derive 0.10.1",
1473
- ]
1474
-
1475
1465
  [[package]]
1476
1466
  name = "prost"
1477
1467
  version = "0.11.6"
@@ -1479,20 +1469,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
1479
1469
  checksum = "21dc42e00223fc37204bd4aa177e69420c604ca4a183209a8f9de30c6d934698"
1480
1470
  dependencies = [
1481
1471
  "bytes",
1482
- "prost-derive 0.11.6",
1483
- ]
1484
-
1485
- [[package]]
1486
- name = "prost-derive"
1487
- version = "0.10.1"
1488
- source = "registry+https://github.com/rust-lang/crates.io-index"
1489
- checksum = "7b670f45da57fb8542ebdbb6105a925fe571b67f9e7ed9f47a06a84e72b4e7cc"
1490
- dependencies = [
1491
- "anyhow",
1492
- "itertools",
1493
- "proc-macro2",
1494
- "quote",
1495
- "syn",
1472
+ "prost-derive",
1496
1473
  ]
1497
1474
 
1498
1475
  [[package]]
@@ -1510,14 +1487,14 @@ dependencies = [
1510
1487
 
1511
1488
  [[package]]
1512
1489
  name = "pyroscope"
1513
- version = "0.5.5"
1490
+ version = "0.5.6"
1514
1491
  dependencies = [
1515
1492
  "json",
1516
1493
  "libc",
1517
1494
  "libflate",
1518
1495
  "log",
1519
1496
  "names",
1520
- "prost 0.10.4",
1497
+ "prost",
1521
1498
  "reqwest",
1522
1499
  "thiserror",
1523
1500
  "url",
@@ -1651,7 +1628,7 @@ dependencies = [
1651
1628
  "memmap2",
1652
1629
  "nix 0.26.2",
1653
1630
  "proc-maps",
1654
- "prost 0.11.6",
1631
+ "prost",
1655
1632
  "rand 0.8.5",
1656
1633
  "rbspy-ruby-structs",
1657
1634
  "remoteprocess",
data/ext/rbspy/src/lib.rs CHANGED
@@ -123,7 +123,7 @@ pub extern "C" fn initialize_agent(
123
123
  tags: *const c_char,
124
124
  compression: *const c_char,
125
125
  report_encoding: *const c_char,
126
- scope_org_id: *const c_char,
126
+ tenant_id: *const c_char,
127
127
  http_headers_json: *const c_char,
128
128
  ) -> bool {
129
129
  // Initialize FFIKit
@@ -134,11 +134,16 @@ pub extern "C" fn initialize_agent(
134
134
  .unwrap()
135
135
  .to_string();
136
136
 
137
- let server_address = unsafe { CStr::from_ptr(server_address) }
137
+ let mut server_address = unsafe { CStr::from_ptr(server_address) }
138
138
  .to_str()
139
139
  .unwrap()
140
140
  .to_string();
141
141
 
142
+ let adhoc_server_address = std::env::var("PYROSCOPE_ADHOC_SERVER_ADDRESS");
143
+ if let Ok(adhoc_server_address) = adhoc_server_address {
144
+ server_address = adhoc_server_address
145
+ }
146
+
142
147
  let auth_token = unsafe { CStr::from_ptr(auth_token) }
143
148
  .to_str()
144
149
  .unwrap()
@@ -169,7 +174,7 @@ pub extern "C" fn initialize_agent(
169
174
  .unwrap()
170
175
  .to_string();
171
176
 
172
- let scope_org_id = unsafe { CStr::from_ptr(scope_org_id) }
177
+ let tenant_id = unsafe { CStr::from_ptr(tenant_id) }
173
178
  .to_str()
174
179
  .unwrap()
175
180
  .to_string();
@@ -209,8 +214,8 @@ pub extern "C" fn initialize_agent(
209
214
  agent_builder = agent_builder.basic_auth(basic_auth_user, basic_auth_password);
210
215
  }
211
216
 
212
- if scope_org_id != "" {
213
- agent_builder = agent_builder.scope_org_id(scope_org_id);
217
+ if tenant_id != "" {
218
+ agent_builder = agent_builder.tenant_id(tenant_id);
214
219
  }
215
220
 
216
221
  let http_headers = pyroscope::pyroscope::parse_http_headers_json(http_headers_json);
@@ -1,3 +1,3 @@
1
1
  module Pyroscope
2
- VERSION = '0.5.6'.freeze
2
+ VERSION = '0.5.8'.freeze
3
3
  end
data/lib/pyroscope.rb CHANGED
@@ -50,7 +50,7 @@ module Pyroscope
50
50
  :compression,
51
51
  :report_encoding,
52
52
  :autoinstrument_rails,
53
- :scope_org_id,
53
+ :tenant_id,
54
54
  :http_headers,
55
55
  ) do
56
56
  def initialize(*)
@@ -71,7 +71,7 @@ module Pyroscope
71
71
  self.compression = 'gzip'
72
72
  self.report_encoding = 'pprof'
73
73
  self.autoinstrument_rails = true
74
- self.scope_org_id = ''
74
+ self.tenant_id = ''
75
75
  self.http_headers = {}
76
76
  end
77
77
  end
@@ -120,7 +120,7 @@ module Pyroscope
120
120
  tags_to_string(@config.tags || {}),
121
121
  @config.compression || "",
122
122
  @config.report_encoding || "pprof",
123
- @config.scope_org_id || "",
123
+ @config.tenant_id || "",
124
124
  http_headers_to_json(@config.http_headers || {})
125
125
  )
126
126
  end
data/lib/rbspy/rbspy.so CHANGED
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pyroscope
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.8
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Pyroscope Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-28 00:00:00.000000000 Z
11
+ date: 2023-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi