pyroscope_beta 0.1.4 → 0.1.7
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 +4 -4
- data/README.md +51 -3
- data/ext/rbspy/Cargo.lock +279 -105
- data/ext/rbspy/Cargo.toml +1 -2
- data/ext/rbspy/Rakefile +16 -15
- data/ext/rbspy/src/lib.rs +0 -3
- data/ext/thread_id/Cargo.lock +2 -2
- data/ext/thread_id/Rakefile +16 -15
- data/lib/pyroscope/version.rb +1 -1
- data/lib/pyroscope_beta.rb +2 -2
- data/pyroscope.gemspec +43 -0
- metadata +165 -13
- data/Gemfile +0 -4
- data/Gemfile.lock +0 -15
- data/Rakefile +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ed92a6ebe4f73b663e77c992950ec3e8608fa33d34c756aace54a3b0629b71a
|
4
|
+
data.tar.gz: 70c19cc237afaea2b4c90bd563df0f1d326849a0e0f304690c72df64e13ec002
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84b0db48c1125447a061ac0fc3f9bb27dacf3909b39ab51cc49daf161c9b1cbb3a6de49726764fc5a6b8467911fec6c5b12f02f7c9211765712b829f72cf0f98
|
7
|
+
data.tar.gz: 03e1ba52e9a92556b05d82aa2b1d98199cdbf185b284ff71ac433656eb46e299ee214ee04d28f90212adf709c9a20f027a35d10d53918a8c5a2a43a53ba9209c
|
data/README.md
CHANGED
@@ -1,9 +1,57 @@
|
|
1
|
-
|
1
|
+
Pyroscope Ruby Integration --Beta--
|
2
|
+
=====================================
|
3
|
+
|
4
|
+
**note**: This is a beta release. It requires local compilation, might be
|
5
|
+
buggy and is frequently updated. For the initial implementation, find it [here](https://github.com/pyroscope-io/pyroscope-ruby). Please report any [issues](https://github.com/pyroscope-io/pyroscope-rs/issues).
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
1. You need the Rust toolchain to compile the library locally. To install
|
10
|
+
Rust:
|
11
|
+
|
12
|
+
```
|
13
|
+
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y
|
14
|
+
export PATH=$PATH:/root/.cargo/bin
|
15
|
+
```
|
16
|
+
|
17
|
+
2. Building/Insalling from Rubygems
|
18
|
+
|
19
|
+
```
|
20
|
+
gem install pyroscope_beta
|
21
|
+
```
|
22
|
+
|
23
|
+
3. Building/Installing from source
|
24
|
+
|
25
|
+
Change directory to `pyroscope_ffi/ruby` and run
|
26
|
+
|
2
27
|
```
|
3
28
|
gem build pyroscope.gemspec
|
29
|
+
gem install ./pyroscope.gemspec
|
30
|
+
```
|
31
|
+
|
32
|
+
## Configuration
|
33
|
+
|
34
|
+
Configuration is similar to the old package except for `application_name`:
|
35
|
+
|
36
|
+
```
|
37
|
+
require 'pyroscope_beta'
|
38
|
+
|
39
|
+
Pyroscope.configure do |config|
|
40
|
+
config.application_name = "ruby.app"
|
41
|
+
config.server_address = "http://localhost:4040"
|
42
|
+
config.detect_subprocesses = true
|
43
|
+
config.tags = {
|
44
|
+
:key => "value",
|
45
|
+
}
|
46
|
+
end
|
4
47
|
```
|
5
48
|
|
6
|
-
|
49
|
+
## Adding tags
|
50
|
+
|
51
|
+
Tags passed to configure are global. To tag code locally, you can use:
|
52
|
+
|
7
53
|
```
|
8
|
-
|
54
|
+
Pyroscope.tag_wrapper({"profile": "profile-1"}) do
|
55
|
+
// Tagged profile
|
56
|
+
end
|
9
57
|
```
|