pyroscope 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/rbspy/src/lib.rs +4 -4
- data/lib/pyroscope/version.rb +1 -1
- data/lib/pyroscope.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03fe43099255b216f6e459fb72d42979b2fbf916366c70d52bc971fcfb25f348
|
4
|
+
data.tar.gz: 94769b9a1ad34b9085e5cdf9af74579c745d8202e61b53d742a4b852d69c8535
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a04c45ec9a48d8c9cc150ff01b6c8e1263c1cf42d3757c060065c04fde3968f8b5d4d41489de6e1d1c6761e3011be13cee29dca52dc6132310d2738aa0f582c
|
7
|
+
data.tar.gz: f8fa223a067547f92d50c05857eec4e196215457096353210422bd52704f6f8dfd67234ca6fa353fe291c313b73f36c9fefe6b61d08c21ca4f8d4182399c6198
|
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
|
-
|
126
|
+
tenant_id: *const c_char,
|
127
127
|
http_headers_json: *const c_char,
|
128
128
|
) -> bool {
|
129
129
|
// Initialize FFIKit
|
@@ -169,7 +169,7 @@ pub extern "C" fn initialize_agent(
|
|
169
169
|
.unwrap()
|
170
170
|
.to_string();
|
171
171
|
|
172
|
-
let
|
172
|
+
let tenant_id = unsafe { CStr::from_ptr(tenant_id) }
|
173
173
|
.to_str()
|
174
174
|
.unwrap()
|
175
175
|
.to_string();
|
@@ -209,8 +209,8 @@ pub extern "C" fn initialize_agent(
|
|
209
209
|
agent_builder = agent_builder.basic_auth(basic_auth_user, basic_auth_password);
|
210
210
|
}
|
211
211
|
|
212
|
-
if
|
213
|
-
agent_builder = agent_builder.
|
212
|
+
if tenant_id != "" {
|
213
|
+
agent_builder = agent_builder.tenant_id(tenant_id);
|
214
214
|
}
|
215
215
|
|
216
216
|
let http_headers = pyroscope::pyroscope::parse_http_headers_json(http_headers_json);
|
data/lib/pyroscope/version.rb
CHANGED
data/lib/pyroscope.rb
CHANGED
@@ -50,7 +50,7 @@ module Pyroscope
|
|
50
50
|
:compression,
|
51
51
|
:report_encoding,
|
52
52
|
:autoinstrument_rails,
|
53
|
-
:
|
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.
|
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.
|
123
|
+
@config.tenant_id || "",
|
124
124
|
http_headers_to_json(@config.http_headers || {})
|
125
125
|
)
|
126
126
|
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.
|
4
|
+
version: 0.5.7
|
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-
|
11
|
+
date: 2023-05-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|