pyroscope-otel 0.1.3 → 0.2.0
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/.github/workflows/main.yml +8 -3
- data/.github/workflows/release.yml +15 -16
- data/lib/pyroscope/otel/version.rb +1 -1
- data/lib/pyroscope/otel.rb +2 -2
- data/pyroscope-otel.gemspec +1 -1
- metadata +13 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 42de33cee39cc4acf9f6ee8e8f598cf8ec22b5b040f31c3df9c3ef6f7777f031
|
|
4
|
+
data.tar.gz: 546174ba2e16131db53fe6638414f172b05f55eb66c2806116538afaf275fb9c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 549e80c87c60838a0d18a46525f634cf062e788b45f431e30268f8d34c3816f9cbe53a4c229f0ccb14b62439929afb65b3b005676a225abbd424a0ac4933b568
|
|
7
|
+
data.tar.gz: 711eb8d035f4a2dcdaac8a7ffff05eb55fb4e4067afcf34e36a41c73ae0a66c06d3d69ea27c140e931854b61446f2805b48bb143af089b050f1e8f13b1c6ecce
|
data/.github/workflows/main.yml
CHANGED
|
@@ -2,13 +2,18 @@ name: Ruby
|
|
|
2
2
|
|
|
3
3
|
on: [push,pull_request]
|
|
4
4
|
|
|
5
|
+
permissions:
|
|
6
|
+
contents: read
|
|
7
|
+
|
|
5
8
|
jobs:
|
|
6
9
|
build:
|
|
7
|
-
runs-on: ubuntu-
|
|
10
|
+
runs-on: ubuntu-x64
|
|
8
11
|
steps:
|
|
9
|
-
- uses: actions/checkout@
|
|
12
|
+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
13
|
+
with:
|
|
14
|
+
persist-credentials: false
|
|
10
15
|
- name: Set up Ruby
|
|
11
|
-
uses: ruby/setup-ruby@v1
|
|
16
|
+
uses: ruby/setup-ruby@dffc446db9ba5a0c4446edb5bca1c5c473a806c5 # v1.235.0
|
|
12
17
|
with:
|
|
13
18
|
ruby-version: 3.0.0
|
|
14
19
|
- name: Run the default task
|
|
@@ -2,27 +2,26 @@ name: Publish Gem
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
-
branches:
|
|
6
|
-
- "*"
|
|
7
5
|
tags:
|
|
8
6
|
- v*
|
|
9
7
|
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
id-token: write
|
|
11
|
+
|
|
10
12
|
jobs:
|
|
11
|
-
|
|
13
|
+
push:
|
|
12
14
|
runs-on: ubuntu-latest
|
|
13
|
-
|
|
14
15
|
steps:
|
|
15
|
-
- uses: actions/checkout@
|
|
16
|
+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
|
|
17
|
+
with:
|
|
18
|
+
persist-credentials: false
|
|
19
|
+
|
|
20
|
+
- name: Set up Ruby
|
|
21
|
+
uses: ruby/setup-ruby@e65c17d16e57e481586a6a5a0282698790062f92 # v1.300.0
|
|
22
|
+
with:
|
|
23
|
+
ruby-version: ruby
|
|
16
24
|
|
|
17
|
-
-
|
|
18
|
-
run: |
|
|
19
|
-
git config user.name "Pyroscope Bot"
|
|
20
|
-
git config user.email "dmitry+bot@pyroscope.io"
|
|
25
|
+
- run: bundle install
|
|
21
26
|
|
|
22
|
-
-
|
|
23
|
-
uses: cadwallion/publish-rubygems-action@master
|
|
24
|
-
if: contains(github.ref, 'refs/tags/v')
|
|
25
|
-
env:
|
|
26
|
-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
27
|
-
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
|
|
28
|
-
RELEASE_COMMAND: rake build release:source_control_push release:rubygem_push
|
|
27
|
+
- uses: rubygems/release-gem@6317d8d1f7e28c24d28f6eff169ea854948bd9f7 # v1.2.0
|
data/lib/pyroscope/otel.rb
CHANGED
|
@@ -43,7 +43,7 @@ module Pyroscope
|
|
|
43
43
|
labels = { "profile_id": profile_id }
|
|
44
44
|
labels["span"] = span.name if @add_span_name
|
|
45
45
|
|
|
46
|
-
Pyroscope._add_tags(
|
|
46
|
+
Pyroscope._add_tags(labels)
|
|
47
47
|
|
|
48
48
|
annotate_span(profile_id, span)
|
|
49
49
|
rescue StandardError => e
|
|
@@ -56,7 +56,7 @@ module Pyroscope
|
|
|
56
56
|
|
|
57
57
|
labels = { "profile_id": profile_id }
|
|
58
58
|
labels["span"] = span.name if @add_span_name
|
|
59
|
-
Pyroscope._remove_tags(
|
|
59
|
+
Pyroscope._remove_tags(labels)
|
|
60
60
|
end
|
|
61
61
|
|
|
62
62
|
def force_flush(*)
|
data/pyroscope-otel.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pyroscope-otel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tolyan Korniltsev
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: opentelemetry-api
|
|
@@ -27,16 +27,22 @@ dependencies:
|
|
|
27
27
|
name: pyroscope
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
|
-
- - "
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '1.0'
|
|
33
|
+
- - "<"
|
|
31
34
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 0
|
|
35
|
+
version: '2.0'
|
|
33
36
|
type: :runtime
|
|
34
37
|
prerelease: false
|
|
35
38
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
39
|
requirements:
|
|
37
|
-
- - "
|
|
40
|
+
- - ">="
|
|
41
|
+
- !ruby/object:Gem::Version
|
|
42
|
+
version: '1.0'
|
|
43
|
+
- - "<"
|
|
38
44
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 0
|
|
45
|
+
version: '2.0'
|
|
40
46
|
description: Pyroscope OTEL integration
|
|
41
47
|
email:
|
|
42
48
|
- anatoly@pyroscope.io
|
|
@@ -79,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
79
85
|
- !ruby/object:Gem::Version
|
|
80
86
|
version: '0'
|
|
81
87
|
requirements: []
|
|
82
|
-
rubygems_version:
|
|
88
|
+
rubygems_version: 4.0.6
|
|
83
89
|
specification_version: 4
|
|
84
90
|
summary: Pyroscope OTEL integration
|
|
85
91
|
test_files: []
|