pyroscope_beta 0.1.3 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '086621e87e8ea84227b0d1e7588e04d6863e0c7747b8028e7eb91f15ecfa703e'
4
- data.tar.gz: fdbd2d92bd973186bd56d991c166e17241358ac5f4a069f8ed9c9fff12887962
3
+ metadata.gz: 6d409de9625e4f204a4d2477f7ecae0a249efe2fb13e7948d3beb5853522b18a
4
+ data.tar.gz: fab14ceec8e0ae424a4864f2ff71c3b732f8f4d4b891d6cedb69574bbe6f88a4
5
5
  SHA512:
6
- metadata.gz: 291d6f3a187ae27994fa194a0180f18ae26b7c9ca4f59fc02622e3e1aa3a8200d0ed9635792326e52a5d944b8c0bba57e2829f5592d6090bcea067148160caf2
7
- data.tar.gz: 5afe3f72fc7ab7c0a986d6fadadb3c168d4bea11e915dec526da6314e6b4d44ecab54a918c4bbab7714b9fb133e363640f9d0bfeb1cd60d8119e64ed3159c497
6
+ metadata.gz: 31d3dd0df1f7aeab632b373085443b47146875877683ca0c0c09ba1061bed0cba1ecc390209f26d28e3f512a6a56ec3ede54aa76b99744ab5f100f1906847d00
7
+ data.tar.gz: c2fecc2d4d15d385c19009d0fdd275aebaaa453de156c8ac0ca4c930a3c2ded896f5b45e3b7ca0a2bcf97bc6c618a31d91e2aca2c3ce9979e14779f30c6683db
data/README.md CHANGED
@@ -1,9 +1,57 @@
1
- Building
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
- Install
49
+ ## Adding tags
50
+
51
+ Tags passed to configure are global. To tag code locally, you can use:
52
+
7
53
  ```
8
- gem install ./pyroscope.gem
54
+ Pyroscope.tag_wrapper({"profile": "profile-1"}) do
55
+ // Tagged profile
56
+ end
9
57
  ```