pyroscope 0.5.7 → 0.5.9

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: 03fe43099255b216f6e459fb72d42979b2fbf916366c70d52bc971fcfb25f348
4
- data.tar.gz: 94769b9a1ad34b9085e5cdf9af74579c745d8202e61b53d742a4b852d69c8535
3
+ metadata.gz: 7d74b0aeef9bf76547ddaea3ec90a5b525db08da8a39678a9747cf287077cf1e
4
+ data.tar.gz: dda481fcfda8d38f42085195447f47083c60b27c2fa4a8ee2124df36187d77c8
5
5
  SHA512:
6
- metadata.gz: 8a04c45ec9a48d8c9cc150ff01b6c8e1263c1cf42d3757c060065c04fde3968f8b5d4d41489de6e1d1c6761e3011be13cee29dca52dc6132310d2738aa0f582c
7
- data.tar.gz: f8fa223a067547f92d50c05857eec4e196215457096353210422bd52704f6f8dfd67234ca6fa353fe291c313b73f36c9fefe6b61d08c21ca4f8d4182399c6198
6
+ metadata.gz: a0274bacefbf668dbb963a73127519309b4cbf161a09dcb60299669e33e4651e46efafbd90fbc2471664a41d268894eb331772e23599cec87c17a2f94c2de586
7
+ data.tar.gz: 86b6841cd673c7cd2db24d046a6693307336153a4cd6c8f90c646998f76a02e83faea78da7f36f61ba076bff5cc6a97b6f999d098299e6f4586ec5ff0099f5ed
data/ext/rbspy/src/lib.rs CHANGED
@@ -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()
@@ -1,3 +1,3 @@
1
1
  module Pyroscope
2
- VERSION = '0.5.7'.freeze
2
+ VERSION = '0.5.9'.freeze
3
3
  end
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.7
4
+ version: 0.5.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pyroscope Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-19 00:00:00.000000000 Z
11
+ date: 2023-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi