pyroscope 0.5.6-arm64-darwin → 0.5.8-arm64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/rbspy/Cargo.lock +227 -336
- data/ext/rbspy/src/lib.rs +10 -5
- data/ext/thread_id/Cargo.lock +38 -106
- data/lib/pyroscope/version.rb +1 -1
- data/lib/pyroscope.rb +3 -3
- data/lib/rbspy/rbspy.bundle +0 -0
- data/lib/thread_id/thread_id.bundle +0 -0
- metadata +2 -2
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
|
@@ -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
|
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
|
213
|
-
agent_builder = agent_builder.
|
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);
|
data/ext/thread_id/Cargo.lock
CHANGED
@@ -88,7 +88,7 @@ checksum = "4bcfec3a70f97c962c307b2d2c56e358cf1d00b558d74262b5f929ee8cc7e73a"
|
|
88
88
|
dependencies = [
|
89
89
|
"errno-dragonfly",
|
90
90
|
"libc",
|
91
|
-
"windows-sys
|
91
|
+
"windows-sys",
|
92
92
|
]
|
93
93
|
|
94
94
|
[[package]]
|
@@ -161,13 +161,13 @@ dependencies = [
|
|
161
161
|
|
162
162
|
[[package]]
|
163
163
|
name = "io-lifetimes"
|
164
|
-
version = "1.0.
|
164
|
+
version = "1.0.11"
|
165
165
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
166
|
-
checksum = "
|
166
|
+
checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2"
|
167
167
|
dependencies = [
|
168
168
|
"hermit-abi 0.3.1",
|
169
169
|
"libc",
|
170
|
-
"windows-sys
|
170
|
+
"windows-sys",
|
171
171
|
]
|
172
172
|
|
173
173
|
[[package]]
|
@@ -178,39 +178,36 @@ checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6"
|
|
178
178
|
|
179
179
|
[[package]]
|
180
180
|
name = "libc"
|
181
|
-
version = "0.2.
|
181
|
+
version = "0.2.146"
|
182
182
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
183
|
-
checksum = "
|
183
|
+
checksum = "f92be4933c13fd498862a9e02a3055f8a8d9c039ce33db97306fd5a6caa7f29b"
|
184
184
|
|
185
185
|
[[package]]
|
186
186
|
name = "linux-raw-sys"
|
187
|
-
version = "0.3.
|
187
|
+
version = "0.3.8"
|
188
188
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
189
|
-
checksum = "
|
189
|
+
checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519"
|
190
190
|
|
191
191
|
[[package]]
|
192
192
|
name = "log"
|
193
|
-
version = "0.4.
|
193
|
+
version = "0.4.19"
|
194
194
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
195
|
-
checksum = "
|
196
|
-
dependencies = [
|
197
|
-
"cfg-if",
|
198
|
-
]
|
195
|
+
checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4"
|
199
196
|
|
200
197
|
[[package]]
|
201
198
|
name = "proc-macro2"
|
202
|
-
version = "1.0.
|
199
|
+
version = "1.0.60"
|
203
200
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
204
|
-
checksum = "
|
201
|
+
checksum = "dec2b086b7a862cf4de201096214fa870344cf922b2b30c167badb3af3195406"
|
205
202
|
dependencies = [
|
206
203
|
"unicode-ident",
|
207
204
|
]
|
208
205
|
|
209
206
|
[[package]]
|
210
207
|
name = "quote"
|
211
|
-
version = "1.0.
|
208
|
+
version = "1.0.28"
|
212
209
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
213
|
-
checksum = "
|
210
|
+
checksum = "1b9ab9c7eadfd8df19006f1cf1a4aed13540ed5cbc047010ece5826e10825488"
|
214
211
|
dependencies = [
|
215
212
|
"proc-macro2",
|
216
213
|
]
|
@@ -226,16 +223,16 @@ dependencies = [
|
|
226
223
|
|
227
224
|
[[package]]
|
228
225
|
name = "rustix"
|
229
|
-
version = "0.37.
|
226
|
+
version = "0.37.20"
|
230
227
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
231
|
-
checksum = "
|
228
|
+
checksum = "b96e891d04aa506a6d1f318d2771bcb1c7dfda84e126660ace067c9b474bb2c0"
|
232
229
|
dependencies = [
|
233
230
|
"bitflags",
|
234
231
|
"errno",
|
235
232
|
"io-lifetimes",
|
236
233
|
"libc",
|
237
234
|
"linux-raw-sys",
|
238
|
-
"windows-sys
|
235
|
+
"windows-sys",
|
239
236
|
]
|
240
237
|
|
241
238
|
[[package]]
|
@@ -246,22 +243,22 @@ checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041"
|
|
246
243
|
|
247
244
|
[[package]]
|
248
245
|
name = "serde"
|
249
|
-
version = "1.0.
|
246
|
+
version = "1.0.164"
|
250
247
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
251
|
-
checksum = "
|
248
|
+
checksum = "9e8c8cf938e98f769bc164923b06dce91cea1751522f46f8466461af04c9027d"
|
252
249
|
dependencies = [
|
253
250
|
"serde_derive",
|
254
251
|
]
|
255
252
|
|
256
253
|
[[package]]
|
257
254
|
name = "serde_derive"
|
258
|
-
version = "1.0.
|
255
|
+
version = "1.0.164"
|
259
256
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
260
|
-
checksum = "
|
257
|
+
checksum = "d9735b638ccc51c28bf6914d90a2e9725b377144fc612c49a611fddd1b631d68"
|
261
258
|
dependencies = [
|
262
259
|
"proc-macro2",
|
263
260
|
"quote",
|
264
|
-
"syn 2.0.
|
261
|
+
"syn 2.0.18",
|
265
262
|
]
|
266
263
|
|
267
264
|
[[package]]
|
@@ -294,9 +291,9 @@ dependencies = [
|
|
294
291
|
|
295
292
|
[[package]]
|
296
293
|
name = "syn"
|
297
|
-
version = "2.0.
|
294
|
+
version = "2.0.18"
|
298
295
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
299
|
-
checksum = "
|
296
|
+
checksum = "32d41677bcbe24c20c52e7c70b0d8db04134c5d1066bf98662e2871ad200ea3e"
|
300
297
|
dependencies = [
|
301
298
|
"proc-macro2",
|
302
299
|
"quote",
|
@@ -305,15 +302,16 @@ dependencies = [
|
|
305
302
|
|
306
303
|
[[package]]
|
307
304
|
name = "tempfile"
|
308
|
-
version = "3.
|
305
|
+
version = "3.6.0"
|
309
306
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
310
|
-
checksum = "
|
307
|
+
checksum = "31c0432476357e58790aaa47a8efb0c5138f137343f3b5f23bd36a27e3b0a6d6"
|
311
308
|
dependencies = [
|
309
|
+
"autocfg",
|
312
310
|
"cfg-if",
|
313
311
|
"fastrand",
|
314
312
|
"redox_syscall",
|
315
313
|
"rustix",
|
316
|
-
"windows-sys
|
314
|
+
"windows-sys",
|
317
315
|
]
|
318
316
|
|
319
317
|
[[package]]
|
@@ -344,9 +342,9 @@ dependencies = [
|
|
344
342
|
|
345
343
|
[[package]]
|
346
344
|
name = "unicode-ident"
|
347
|
-
version = "1.0.
|
345
|
+
version = "1.0.9"
|
348
346
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
349
|
-
checksum = "
|
347
|
+
checksum = "b15811caf2415fb889178633e7724bad2509101cde276048e013b9def5e51fa0"
|
350
348
|
|
351
349
|
[[package]]
|
352
350
|
name = "unicode-segmentation"
|
@@ -388,37 +386,13 @@ version = "0.4.0"
|
|
388
386
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
389
387
|
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
390
388
|
|
391
|
-
[[package]]
|
392
|
-
name = "windows-sys"
|
393
|
-
version = "0.45.0"
|
394
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
395
|
-
checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"
|
396
|
-
dependencies = [
|
397
|
-
"windows-targets 0.42.2",
|
398
|
-
]
|
399
|
-
|
400
389
|
[[package]]
|
401
390
|
name = "windows-sys"
|
402
391
|
version = "0.48.0"
|
403
392
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
404
393
|
checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
|
405
394
|
dependencies = [
|
406
|
-
"windows-targets
|
407
|
-
]
|
408
|
-
|
409
|
-
[[package]]
|
410
|
-
name = "windows-targets"
|
411
|
-
version = "0.42.2"
|
412
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
413
|
-
checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071"
|
414
|
-
dependencies = [
|
415
|
-
"windows_aarch64_gnullvm 0.42.2",
|
416
|
-
"windows_aarch64_msvc 0.42.2",
|
417
|
-
"windows_i686_gnu 0.42.2",
|
418
|
-
"windows_i686_msvc 0.42.2",
|
419
|
-
"windows_x86_64_gnu 0.42.2",
|
420
|
-
"windows_x86_64_gnullvm 0.42.2",
|
421
|
-
"windows_x86_64_msvc 0.42.2",
|
395
|
+
"windows-targets",
|
422
396
|
]
|
423
397
|
|
424
398
|
[[package]]
|
@@ -427,93 +401,51 @@ version = "0.48.0"
|
|
427
401
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
428
402
|
checksum = "7b1eb6f0cd7c80c79759c929114ef071b87354ce476d9d94271031c0497adfd5"
|
429
403
|
dependencies = [
|
430
|
-
"windows_aarch64_gnullvm
|
431
|
-
"windows_aarch64_msvc
|
432
|
-
"windows_i686_gnu
|
433
|
-
"windows_i686_msvc
|
434
|
-
"windows_x86_64_gnu
|
435
|
-
"windows_x86_64_gnullvm
|
436
|
-
"windows_x86_64_msvc
|
404
|
+
"windows_aarch64_gnullvm",
|
405
|
+
"windows_aarch64_msvc",
|
406
|
+
"windows_i686_gnu",
|
407
|
+
"windows_i686_msvc",
|
408
|
+
"windows_x86_64_gnu",
|
409
|
+
"windows_x86_64_gnullvm",
|
410
|
+
"windows_x86_64_msvc",
|
437
411
|
]
|
438
412
|
|
439
|
-
[[package]]
|
440
|
-
name = "windows_aarch64_gnullvm"
|
441
|
-
version = "0.42.2"
|
442
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
443
|
-
checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8"
|
444
|
-
|
445
413
|
[[package]]
|
446
414
|
name = "windows_aarch64_gnullvm"
|
447
415
|
version = "0.48.0"
|
448
416
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
449
417
|
checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc"
|
450
418
|
|
451
|
-
[[package]]
|
452
|
-
name = "windows_aarch64_msvc"
|
453
|
-
version = "0.42.2"
|
454
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
455
|
-
checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43"
|
456
|
-
|
457
419
|
[[package]]
|
458
420
|
name = "windows_aarch64_msvc"
|
459
421
|
version = "0.48.0"
|
460
422
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
461
423
|
checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3"
|
462
424
|
|
463
|
-
[[package]]
|
464
|
-
name = "windows_i686_gnu"
|
465
|
-
version = "0.42.2"
|
466
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
467
|
-
checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f"
|
468
|
-
|
469
425
|
[[package]]
|
470
426
|
name = "windows_i686_gnu"
|
471
427
|
version = "0.48.0"
|
472
428
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
473
429
|
checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241"
|
474
430
|
|
475
|
-
[[package]]
|
476
|
-
name = "windows_i686_msvc"
|
477
|
-
version = "0.42.2"
|
478
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
479
|
-
checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060"
|
480
|
-
|
481
431
|
[[package]]
|
482
432
|
name = "windows_i686_msvc"
|
483
433
|
version = "0.48.0"
|
484
434
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
485
435
|
checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00"
|
486
436
|
|
487
|
-
[[package]]
|
488
|
-
name = "windows_x86_64_gnu"
|
489
|
-
version = "0.42.2"
|
490
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
491
|
-
checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36"
|
492
|
-
|
493
437
|
[[package]]
|
494
438
|
name = "windows_x86_64_gnu"
|
495
439
|
version = "0.48.0"
|
496
440
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
497
441
|
checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1"
|
498
442
|
|
499
|
-
[[package]]
|
500
|
-
name = "windows_x86_64_gnullvm"
|
501
|
-
version = "0.42.2"
|
502
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
503
|
-
checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3"
|
504
|
-
|
505
443
|
[[package]]
|
506
444
|
name = "windows_x86_64_gnullvm"
|
507
445
|
version = "0.48.0"
|
508
446
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
509
447
|
checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953"
|
510
448
|
|
511
|
-
[[package]]
|
512
|
-
name = "windows_x86_64_msvc"
|
513
|
-
version = "0.42.2"
|
514
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
515
|
-
checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0"
|
516
|
-
|
517
449
|
[[package]]
|
518
450
|
name = "windows_x86_64_msvc"
|
519
451
|
version = "0.48.0"
|
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
|
data/lib/rbspy/rbspy.bundle
CHANGED
Binary file
|
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.
|
4
|
+
version: 0.5.8
|
5
5
|
platform: arm64-darwin
|
6
6
|
authors:
|
7
7
|
- Pyroscope Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|