helios-opentelemetry-sdk 0.1.21 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 71228262be35fda8a5c39eb237ca42493837d315d9ae146dd69c04210905a731
4
- data.tar.gz: 19125d421f0a1f086875a97f68b637d3b57df214a542e70c9cbdc9be472dd190
3
+ metadata.gz: 30d512596019afb2cabd7d039673bc7b474e46bc2f12b0684bf8326da99e8c97
4
+ data.tar.gz: e40030e43b4ebac27f495374cc1a82654005c68471e7bb1d2f9cf2341eefa02a
5
5
  SHA512:
6
- metadata.gz: 2fac93ce1793b9e423f0b7c034e14367c69a64fc2be163a57dc6feb7035310d8a4dee2ddec29a56c962e52db0379375a71f660f88e00be019ded30c1431e6574
7
- data.tar.gz: 5840af6374120b29742da322c7a0780907f293fb884a2892cb387c916fd54b6487c8da9747f5e1b9e0cb25f720724a6c2f96438fb047c530a097f07991b8f1f5
6
+ metadata.gz: 6c7584522b015343ece159090b6fc050ca6068ab62bc2b63721df131d26fd7bbbfaca611427314e56beff3710dbe97354a70064cfd557a0ff81a351adb1bdc9e
7
+ data.tar.gz: 213d5796b0f9d9f7ddd1064583dd007036570e829037a93092d7b913b1e5050b41cc73645c163c6a0894bdce2709fdb3af570a6e278782da8ead2ee8956c5228
@@ -20,7 +20,7 @@ jobs:
20
20
  strategy:
21
21
  fail-fast: false
22
22
  matrix:
23
- ruby-version: ['2.6', '2.7', '3.1']
23
+ ruby-version: ['3.1']
24
24
  services:
25
25
  mongodb:
26
26
  image: mongo@sha256:845fd775d7a58f564fae7c17a4eec7ff038e1c4004ebe05cc1cb5fc3767cf6cc
@@ -33,14 +33,15 @@ jobs:
33
33
  --health-retries=3
34
34
  steps:
35
35
  - uses: actions/checkout@v2
36
- - uses: actions/setup-ruby@v1
36
+ - uses: ruby/setup-ruby@v1
37
37
  with:
38
38
  ruby-version: ${{ matrix.ruby-version }}
39
+ bundler-cache: true
39
40
  - name: Install bundler
40
41
  run: gem install bundler -v 2.3.16
41
42
  - name: bundle install
42
43
  run: bundle install
43
44
  - name: Rubocop
44
- run: rubocop lib spec
45
+ run: bundle exec rubocop lib spec
45
46
  - name: Run specs
46
- run: rspec spec
47
+ run: bundle exec rspec spec
data/Gemfile CHANGED
@@ -2,10 +2,10 @@ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
5
- gem 'opentelemetry-sdk', '~> 1.1.0'
6
- gem 'opentelemetry-exporter-otlp', '~> 0.22.0'
7
- gem 'opentelemetry-instrumentation-all', '~> 0.25.0'
8
- gem 'opentelemetry-instrumentation-rspec', '~> 0.2.0'
5
+ gem 'opentelemetry-sdk', '~> 1.2.0'
6
+ gem 'opentelemetry-exporter-otlp', '~> 0.24.0'
7
+ gem 'opentelemetry-instrumentation-all', '~> 0.35.0'
8
+ gem 'opentelemetry-instrumentation-rspec', '~> 0.3.0'
9
9
  gem 'rubocop', '~> 1.30.1', group: [:development, :test]
10
10
  gem 'bundler', '~> 2.3.16', group: [:development, :test]
11
11
  gem 'faraday', '~> 2.3.0', group: [:development, :test]
data/Gemfile.lock CHANGED
@@ -1,11 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- helios-opentelemetry-sdk (0.1.20)
5
- opentelemetry-exporter-otlp (~> 0.22.0)
6
- opentelemetry-instrumentation-all (~> 0.25.0)
7
- opentelemetry-instrumentation-rspec (~> 0.2.0)
8
- opentelemetry-sdk (~> 1.1.0)
4
+ helios-opentelemetry-sdk (0.2.0)
5
+ opentelemetry-exporter-otlp (~> 0.24.0)
6
+ opentelemetry-instrumentation-all (~> 0.35.0)
7
+ opentelemetry-instrumentation-rspec (~> 0.3.0)
8
+ opentelemetry-sdk (~> 1.2.0)
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
@@ -17,191 +17,201 @@ GEM
17
17
  faraday-net_http (~> 2.0)
18
18
  ruby2_keywords (>= 0.0.4)
19
19
  faraday-net_http (2.0.3)
20
- google-protobuf (3.21.1)
21
- googleapis-common-protos-types (1.3.1)
20
+ google-protobuf (3.23.0)
21
+ googleapis-common-protos-types (1.6.0)
22
22
  google-protobuf (~> 3.14)
23
23
  mongo (2.18.1)
24
24
  bson (>= 4.14.1, < 5.0.0)
25
- opentelemetry-api (1.0.2)
25
+ opentelemetry-api (1.1.0)
26
26
  opentelemetry-common (0.19.6)
27
27
  opentelemetry-api (~> 1.0)
28
- opentelemetry-exporter-otlp (0.22.0)
28
+ opentelemetry-exporter-otlp (0.24.0)
29
29
  google-protobuf (~> 3.19)
30
30
  googleapis-common-protos-types (~> 1.3)
31
- opentelemetry-api (~> 1.0)
31
+ opentelemetry-api (~> 1.1)
32
32
  opentelemetry-common (~> 0.19.6)
33
- opentelemetry-sdk (~> 1.0)
33
+ opentelemetry-sdk (~> 1.2)
34
34
  opentelemetry-semantic_conventions
35
- opentelemetry-instrumentation-action_pack (0.2.0)
35
+ opentelemetry-instrumentation-action_pack (0.6.0)
36
36
  opentelemetry-api (~> 1.0)
37
- opentelemetry-instrumentation-base (~> 0.21.0)
38
- opentelemetry-instrumentation-rack (~> 0.21.0)
39
- opentelemetry-instrumentation-action_view (0.3.0)
37
+ opentelemetry-instrumentation-base (~> 0.22.0)
38
+ opentelemetry-instrumentation-rack (~> 0.21)
39
+ opentelemetry-instrumentation-action_view (0.5.0)
40
40
  opentelemetry-api (~> 1.0)
41
41
  opentelemetry-instrumentation-active_support (~> 0.1)
42
- opentelemetry-instrumentation-base (~> 0.20)
43
- opentelemetry-instrumentation-active_job (0.3.0)
42
+ opentelemetry-instrumentation-base (~> 0.22.0)
43
+ opentelemetry-instrumentation-active_job (0.5.0)
44
44
  opentelemetry-api (~> 1.0)
45
- opentelemetry-instrumentation-base (~> 0.21.0)
46
- opentelemetry-instrumentation-active_model_serializers (0.19.0)
45
+ opentelemetry-instrumentation-base (~> 0.22.0)
46
+ opentelemetry-instrumentation-active_model_serializers (0.20.0)
47
47
  opentelemetry-api (~> 1.0)
48
- opentelemetry-instrumentation-base (~> 0.21.0)
49
- opentelemetry-instrumentation-active_record (0.4.0)
48
+ opentelemetry-instrumentation-base (~> 0.22.0)
49
+ opentelemetry-instrumentation-active_record (0.6.0)
50
50
  opentelemetry-api (~> 1.0)
51
- opentelemetry-instrumentation-base (~> 0.21.0)
51
+ opentelemetry-instrumentation-base (~> 0.22.0)
52
52
  ruby2_keywords
53
- opentelemetry-instrumentation-active_support (0.2.0)
54
- opentelemetry-api (~> 1.0)
55
- opentelemetry-instrumentation-base (~> 0.21.0)
56
- opentelemetry-instrumentation-all (0.25.0)
57
- opentelemetry-instrumentation-action_pack (~> 0.2.0)
58
- opentelemetry-instrumentation-action_view (~> 0.3.0)
59
- opentelemetry-instrumentation-active_job (~> 0.3.0)
60
- opentelemetry-instrumentation-active_model_serializers (~> 0.19.0)
61
- opentelemetry-instrumentation-active_record (~> 0.4.0)
62
- opentelemetry-instrumentation-active_support (~> 0.2.0)
63
- opentelemetry-instrumentation-aws_sdk (~> 0.3.0)
64
- opentelemetry-instrumentation-bunny (~> 0.19.0)
65
- opentelemetry-instrumentation-concurrent_ruby (~> 0.20.0)
66
- opentelemetry-instrumentation-dalli (~> 0.22.0)
67
- opentelemetry-instrumentation-delayed_job (~> 0.19.0)
68
- opentelemetry-instrumentation-ethon (~> 0.20.0)
69
- opentelemetry-instrumentation-excon (~> 0.20.0)
70
- opentelemetry-instrumentation-faraday (~> 0.21.0)
71
- opentelemetry-instrumentation-graphql (~> 0.20.0)
72
- opentelemetry-instrumentation-http (~> 0.20.0)
73
- opentelemetry-instrumentation-http_client (~> 0.20.0)
74
- opentelemetry-instrumentation-koala (~> 0.19.0)
75
- opentelemetry-instrumentation-lmdb (~> 0.21.0)
76
- opentelemetry-instrumentation-mongo (~> 0.20.0)
77
- opentelemetry-instrumentation-mysql2 (~> 0.21.0)
78
- opentelemetry-instrumentation-net_http (~> 0.20.0)
79
- opentelemetry-instrumentation-pg (~> 0.21.0)
80
- opentelemetry-instrumentation-que (~> 0.4.0)
81
- opentelemetry-instrumentation-rack (~> 0.21.0)
82
- opentelemetry-instrumentation-rails (~> 0.22.0)
83
- opentelemetry-instrumentation-rdkafka (~> 0.2.0)
84
- opentelemetry-instrumentation-redis (~> 0.23.0)
85
- opentelemetry-instrumentation-resque (~> 0.3.0)
86
- opentelemetry-instrumentation-restclient (~> 0.20.0)
87
- opentelemetry-instrumentation-ruby_kafka (~> 0.19.0)
88
- opentelemetry-instrumentation-sidekiq (~> 0.22.0)
89
- opentelemetry-instrumentation-sinatra (~> 0.20.0)
90
- opentelemetry-instrumentation-trilogy (~> 0.51.0)
91
- opentelemetry-instrumentation-aws_sdk (0.3.0)
92
- opentelemetry-api (~> 1.0)
93
- opentelemetry-instrumentation-base (~> 0.21.0)
94
- opentelemetry-instrumentation-base (0.21.0)
53
+ opentelemetry-instrumentation-active_support (0.4.0)
54
+ opentelemetry-api (~> 1.0)
55
+ opentelemetry-instrumentation-base (~> 0.22.0)
56
+ opentelemetry-instrumentation-all (0.35.0)
57
+ opentelemetry-instrumentation-active_model_serializers (~> 0.20.0)
58
+ opentelemetry-instrumentation-aws_sdk (~> 0.4.0)
59
+ opentelemetry-instrumentation-bunny (~> 0.20.0)
60
+ opentelemetry-instrumentation-concurrent_ruby (~> 0.21.0)
61
+ opentelemetry-instrumentation-dalli (~> 0.23.0)
62
+ opentelemetry-instrumentation-delayed_job (~> 0.20.0)
63
+ opentelemetry-instrumentation-ethon (~> 0.21.0)
64
+ opentelemetry-instrumentation-excon (~> 0.21.0)
65
+ opentelemetry-instrumentation-faraday (~> 0.23.0)
66
+ opentelemetry-instrumentation-grape (~> 0.1.0)
67
+ opentelemetry-instrumentation-graphql (~> 0.25.0)
68
+ opentelemetry-instrumentation-http (~> 0.22.0)
69
+ opentelemetry-instrumentation-http_client (~> 0.22.0)
70
+ opentelemetry-instrumentation-koala (~> 0.20.0)
71
+ opentelemetry-instrumentation-lmdb (~> 0.22.0)
72
+ opentelemetry-instrumentation-mongo (~> 0.22.0)
73
+ opentelemetry-instrumentation-mysql2 (~> 0.23.0)
74
+ opentelemetry-instrumentation-net_http (~> 0.22.0)
75
+ opentelemetry-instrumentation-pg (~> 0.24.0)
76
+ opentelemetry-instrumentation-que (~> 0.6.0)
77
+ opentelemetry-instrumentation-racecar (~> 0.2.0)
78
+ opentelemetry-instrumentation-rack (~> 0.23.0)
79
+ opentelemetry-instrumentation-rails (~> 0.26.0)
80
+ opentelemetry-instrumentation-rake (~> 0.2.0)
81
+ opentelemetry-instrumentation-rdkafka (~> 0.3.0)
82
+ opentelemetry-instrumentation-redis (~> 0.25.0)
83
+ opentelemetry-instrumentation-resque (~> 0.4.0)
84
+ opentelemetry-instrumentation-restclient (~> 0.22.0)
85
+ opentelemetry-instrumentation-ruby_kafka (~> 0.20.0)
86
+ opentelemetry-instrumentation-sidekiq (~> 0.24.0)
87
+ opentelemetry-instrumentation-sinatra (~> 0.22.0)
88
+ opentelemetry-instrumentation-trilogy (~> 0.53.0)
89
+ opentelemetry-instrumentation-aws_sdk (0.4.0)
90
+ opentelemetry-api (~> 1.0)
91
+ opentelemetry-instrumentation-base (~> 0.22.0)
92
+ opentelemetry-instrumentation-base (0.22.0)
95
93
  opentelemetry-api (~> 1.0)
96
94
  opentelemetry-registry (~> 0.1)
97
- opentelemetry-instrumentation-bunny (0.19.0)
95
+ opentelemetry-instrumentation-bunny (0.20.0)
98
96
  opentelemetry-api (~> 1.0)
99
- opentelemetry-instrumentation-base (~> 0.21.0)
100
- opentelemetry-instrumentation-concurrent_ruby (0.20.0)
97
+ opentelemetry-instrumentation-base (~> 0.22.0)
98
+ opentelemetry-instrumentation-concurrent_ruby (0.21.0)
101
99
  opentelemetry-api (~> 1.0)
102
- opentelemetry-instrumentation-base (~> 0.21.0)
103
- opentelemetry-instrumentation-dalli (0.22.0)
100
+ opentelemetry-instrumentation-base (~> 0.22.0)
101
+ opentelemetry-instrumentation-dalli (0.23.0)
104
102
  opentelemetry-api (~> 1.0)
105
103
  opentelemetry-common (~> 0.19.3)
106
- opentelemetry-instrumentation-base (~> 0.21.0)
107
- opentelemetry-instrumentation-delayed_job (0.19.0)
104
+ opentelemetry-instrumentation-base (~> 0.22.0)
105
+ opentelemetry-instrumentation-delayed_job (0.20.0)
108
106
  opentelemetry-api (~> 1.0)
109
- opentelemetry-instrumentation-base (~> 0.21.0)
110
- opentelemetry-instrumentation-ethon (0.20.0)
107
+ opentelemetry-instrumentation-base (~> 0.22.0)
108
+ opentelemetry-instrumentation-ethon (0.21.0)
111
109
  opentelemetry-api (~> 1.0)
112
110
  opentelemetry-common (~> 0.19.3)
113
- opentelemetry-instrumentation-base (~> 0.21.0)
114
- opentelemetry-instrumentation-excon (0.20.0)
111
+ opentelemetry-instrumentation-base (~> 0.22.0)
112
+ opentelemetry-instrumentation-excon (0.21.0)
115
113
  opentelemetry-api (~> 1.0)
116
114
  opentelemetry-common (~> 0.19.3)
117
- opentelemetry-instrumentation-base (~> 0.21.0)
118
- opentelemetry-instrumentation-faraday (0.21.0)
115
+ opentelemetry-instrumentation-base (~> 0.22.0)
116
+ opentelemetry-instrumentation-faraday (0.23.0)
119
117
  opentelemetry-api (~> 1.0)
120
118
  opentelemetry-common (~> 0.19.3)
121
- opentelemetry-instrumentation-base (~> 0.21.0)
122
- opentelemetry-instrumentation-graphql (0.20.0)
119
+ opentelemetry-instrumentation-base (~> 0.22.0)
120
+ opentelemetry-instrumentation-grape (0.1.2)
121
+ opentelemetry-api (~> 1.1.0)
122
+ opentelemetry-instrumentation-base (~> 0.22.0)
123
+ opentelemetry-instrumentation-rack (~> 0.21)
124
+ opentelemetry-instrumentation-graphql (0.25.0)
123
125
  opentelemetry-api (~> 1.0)
124
- opentelemetry-instrumentation-base (~> 0.21.0)
125
- opentelemetry-instrumentation-http (0.20.0)
126
+ opentelemetry-instrumentation-base (~> 0.22.0)
127
+ opentelemetry-instrumentation-http (0.22.0)
126
128
  opentelemetry-api (~> 1.0)
127
- opentelemetry-instrumentation-base (~> 0.21.0)
128
- opentelemetry-instrumentation-http_client (0.20.0)
129
+ opentelemetry-instrumentation-base (~> 0.22.0)
130
+ opentelemetry-instrumentation-http_client (0.22.0)
129
131
  opentelemetry-api (~> 1.0)
130
132
  opentelemetry-common (~> 0.19.3)
131
- opentelemetry-instrumentation-base (~> 0.21.0)
132
- opentelemetry-instrumentation-koala (0.19.0)
133
+ opentelemetry-instrumentation-base (~> 0.22.0)
134
+ opentelemetry-instrumentation-koala (0.20.0)
133
135
  opentelemetry-api (~> 1.0)
134
136
  opentelemetry-common (~> 0.19.3)
135
- opentelemetry-instrumentation-base (~> 0.21.0)
136
- opentelemetry-instrumentation-lmdb (0.21.0)
137
+ opentelemetry-instrumentation-base (~> 0.22.0)
138
+ opentelemetry-instrumentation-lmdb (0.22.0)
137
139
  opentelemetry-api (~> 1.0)
138
- opentelemetry-instrumentation-base (~> 0.21.0)
139
- opentelemetry-instrumentation-mongo (0.20.0)
140
+ opentelemetry-instrumentation-base (~> 0.22.0)
141
+ opentelemetry-instrumentation-mongo (0.22.0)
140
142
  opentelemetry-api (~> 1.0)
141
- opentelemetry-instrumentation-base (~> 0.21.0)
142
- opentelemetry-instrumentation-mysql2 (0.21.0)
143
+ opentelemetry-instrumentation-base (~> 0.22.0)
144
+ opentelemetry-instrumentation-mysql2 (0.23.0)
143
145
  opentelemetry-api (~> 1.0)
144
- opentelemetry-instrumentation-base (~> 0.21.0)
145
- opentelemetry-instrumentation-net_http (0.20.0)
146
+ opentelemetry-instrumentation-base (~> 0.22.0)
147
+ opentelemetry-instrumentation-net_http (0.22.0)
146
148
  opentelemetry-api (~> 1.0)
147
149
  opentelemetry-common (~> 0.19.3)
148
- opentelemetry-instrumentation-base (~> 0.21.0)
149
- opentelemetry-instrumentation-pg (0.21.0)
150
+ opentelemetry-instrumentation-base (~> 0.22.0)
151
+ opentelemetry-instrumentation-pg (0.24.0)
152
+ opentelemetry-api (~> 1.0)
153
+ opentelemetry-instrumentation-base (~> 0.22.0)
154
+ opentelemetry-instrumentation-que (0.6.0)
150
155
  opentelemetry-api (~> 1.0)
151
- opentelemetry-instrumentation-base (~> 0.21.0)
152
- opentelemetry-instrumentation-que (0.4.0)
156
+ opentelemetry-instrumentation-base (~> 0.22.0)
157
+ opentelemetry-instrumentation-racecar (0.2.0)
153
158
  opentelemetry-api (~> 1.0)
154
- opentelemetry-instrumentation-base (~> 0.21.0)
155
- opentelemetry-instrumentation-rack (0.21.0)
159
+ opentelemetry-instrumentation-base (~> 0.22.0)
160
+ opentelemetry-instrumentation-rack (0.23.0)
156
161
  opentelemetry-api (~> 1.0)
157
162
  opentelemetry-common (~> 0.19.3)
158
- opentelemetry-instrumentation-base (~> 0.21.0)
159
- opentelemetry-instrumentation-rails (0.22.0)
160
- opentelemetry-api (~> 1.0)
161
- opentelemetry-instrumentation-action_pack (~> 0.2.0)
162
- opentelemetry-instrumentation-action_view (~> 0.3.0)
163
- opentelemetry-instrumentation-active_record (~> 0.4.0)
164
- opentelemetry-instrumentation-active_support (~> 0.2.0)
165
- opentelemetry-instrumentation-base (~> 0.21.0)
166
- opentelemetry-instrumentation-rdkafka (0.2.0)
167
- opentelemetry-api (~> 1.0.0)
163
+ opentelemetry-instrumentation-base (~> 0.22.0)
164
+ opentelemetry-instrumentation-rails (0.26.0)
165
+ opentelemetry-api (~> 1.0)
166
+ opentelemetry-instrumentation-action_pack (~> 0.6.0)
167
+ opentelemetry-instrumentation-action_view (~> 0.5.0)
168
+ opentelemetry-instrumentation-active_job (~> 0.5.0)
169
+ opentelemetry-instrumentation-active_record (~> 0.6.0)
170
+ opentelemetry-instrumentation-active_support (~> 0.4.0)
171
+ opentelemetry-instrumentation-base (~> 0.22.0)
172
+ opentelemetry-instrumentation-rake (0.2.0)
173
+ opentelemetry-api (~> 1.0)
174
+ opentelemetry-instrumentation-base (~> 0.22.0)
175
+ opentelemetry-instrumentation-rdkafka (0.3.0)
176
+ opentelemetry-api (~> 1.0)
168
177
  opentelemetry-common (~> 0.19.3)
169
- opentelemetry-instrumentation-base (~> 0.21.0)
170
- opentelemetry-instrumentation-redis (0.23.0)
178
+ opentelemetry-instrumentation-base (~> 0.22.0)
179
+ opentelemetry-instrumentation-redis (0.25.0)
171
180
  opentelemetry-api (~> 1.0)
172
181
  opentelemetry-common (~> 0.19.3)
173
- opentelemetry-instrumentation-base (~> 0.21.0)
174
- opentelemetry-instrumentation-resque (0.3.0)
182
+ opentelemetry-instrumentation-base (~> 0.22.0)
183
+ opentelemetry-instrumentation-resque (0.4.0)
175
184
  opentelemetry-api (~> 1.0)
176
- opentelemetry-instrumentation-base (~> 0.21.0)
177
- opentelemetry-instrumentation-restclient (0.20.0)
185
+ opentelemetry-instrumentation-base (~> 0.22.0)
186
+ opentelemetry-instrumentation-restclient (0.22.0)
178
187
  opentelemetry-api (~> 1.0)
179
188
  opentelemetry-common (~> 0.19.3)
180
- opentelemetry-instrumentation-base (~> 0.21.0)
181
- opentelemetry-instrumentation-rspec (0.2.0)
189
+ opentelemetry-instrumentation-base (~> 0.22.0)
190
+ opentelemetry-instrumentation-rspec (0.3.0)
182
191
  opentelemetry-api (~> 1.0)
183
- opentelemetry-instrumentation-base (~> 0.21.0)
184
- opentelemetry-instrumentation-ruby_kafka (0.19.0)
192
+ opentelemetry-instrumentation-base (~> 0.22.0)
193
+ opentelemetry-instrumentation-ruby_kafka (0.20.0)
185
194
  opentelemetry-api (~> 1.0)
186
- opentelemetry-instrumentation-base (~> 0.21.0)
187
- opentelemetry-instrumentation-sidekiq (0.22.0)
195
+ opentelemetry-instrumentation-base (~> 0.22.0)
196
+ opentelemetry-instrumentation-sidekiq (0.24.0)
188
197
  opentelemetry-api (~> 1.0)
189
198
  opentelemetry-common (~> 0.19.3)
190
- opentelemetry-instrumentation-base (~> 0.21.0)
191
- opentelemetry-instrumentation-sinatra (0.20.0)
199
+ opentelemetry-instrumentation-base (~> 0.22.0)
200
+ opentelemetry-instrumentation-sinatra (0.22.0)
192
201
  opentelemetry-api (~> 1.0)
193
202
  opentelemetry-common (~> 0.19.3)
194
- opentelemetry-instrumentation-base (~> 0.21.0)
195
- opentelemetry-instrumentation-trilogy (0.51.0)
203
+ opentelemetry-instrumentation-base (~> 0.22.0)
204
+ opentelemetry-instrumentation-rack (~> 0.21)
205
+ opentelemetry-instrumentation-trilogy (0.53.0)
196
206
  opentelemetry-api (~> 1.0)
197
- opentelemetry-instrumentation-base (~> 0.21.0)
207
+ opentelemetry-instrumentation-base (~> 0.22.0)
198
208
  opentelemetry-semantic_conventions (>= 1.8.0)
199
- opentelemetry-registry (0.1.0)
200
- opentelemetry-api (~> 1.0.1)
201
- opentelemetry-sdk (1.1.0)
202
- opentelemetry-api (~> 1.0)
209
+ opentelemetry-registry (0.2.0)
210
+ opentelemetry-api (~> 1.1)
211
+ opentelemetry-sdk (1.2.0)
212
+ opentelemetry-api (~> 1.1)
203
213
  opentelemetry-common (~> 0.19.3)
204
- opentelemetry-registry (~> 0.1)
214
+ opentelemetry-registry (~> 0.2)
205
215
  opentelemetry-semantic_conventions
206
216
  opentelemetry-semantic_conventions (1.8.0)
207
217
  opentelemetry-api (~> 1.0)
@@ -249,10 +259,10 @@ DEPENDENCIES
249
259
  faraday (~> 2.3.0)
250
260
  helios-opentelemetry-sdk!
251
261
  mongo (~> 2.5)
252
- opentelemetry-exporter-otlp (~> 0.22.0)
253
- opentelemetry-instrumentation-all (~> 0.25.0)
254
- opentelemetry-instrumentation-rspec (~> 0.2.0)
255
- opentelemetry-sdk (~> 1.1.0)
262
+ opentelemetry-exporter-otlp (~> 0.24.0)
263
+ opentelemetry-instrumentation-all (~> 0.35.0)
264
+ opentelemetry-instrumentation-rspec (~> 0.3.0)
265
+ opentelemetry-sdk (~> 1.2.0)
256
266
  rack (~> 2.2.4)
257
267
  rake (~> 13.0)
258
268
  rspec (~> 3.0)
data/README.md CHANGED
@@ -1 +1,8 @@
1
1
  # ruby-sdk
2
+
3
+
4
+ ## Release instructions
5
+
6
+ 1. Bump version in `version.rb` and make sure it gets updated in `Gemfile.lock`
7
+ 2. Run `gem build`
8
+ 3. Run `gem push helios-opentelemetry-sdk-{{VERSION}}.gem`
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.summary = "Helios OpenTelemetry SDK for Ruby"
13
13
  spec.description = "Helios OpenTelemetry SDK for Ruby"
14
14
  spec.homepage = "https://gethelios.dev"
15
- spec.required_ruby_version = Gem::Requirement.new(">= 2.3")
15
+ spec.required_ruby_version = Gem::Requirement.new(">= 3.0")
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
18
  # to allow pushing to a single host or delete this section to allow pushing to any host.
@@ -37,8 +37,8 @@ Gem::Specification.new do |spec|
37
37
  spec.add_development_dependency "bundler", "~> 2.3.16"
38
38
  spec.add_development_dependency "rake", "~> 13.0"
39
39
  spec.add_development_dependency "rspec", "~> 3.0"
40
- spec.add_runtime_dependency "opentelemetry-sdk", "~> 1.1.0"
41
- spec.add_runtime_dependency "opentelemetry-exporter-otlp", "~> 0.22.0"
42
- spec.add_runtime_dependency "opentelemetry-instrumentation-all", "~> 0.25.0"
43
- spec.add_runtime_dependency "opentelemetry-instrumentation-rspec", "~> 0.2.0"
40
+ spec.add_runtime_dependency "opentelemetry-sdk", "~> 1.2.0"
41
+ spec.add_runtime_dependency "opentelemetry-exporter-otlp", "~> 0.24.0"
42
+ spec.add_runtime_dependency "opentelemetry-instrumentation-all", "~> 0.35.0"
43
+ spec.add_runtime_dependency "opentelemetry-instrumentation-rspec", "~> 0.3.0"
44
44
  end
@@ -1,12 +1,37 @@
1
1
  require 'opentelemetry/sdk'
2
+ require_relative '../semantic_attributes'
2
3
 
3
4
  HELIOS_TEST_TRIGGERED_TRACE = 'hs-triggered-test'.freeze
4
5
 
6
+ ATTRIBUTES_TO_DROP = [
7
+ Helios::OpenTelemetry::SemanticAttributes::DB_QUERY_RESULT,
8
+ Helios::OpenTelemetry::SemanticAttributes::HTTP_RESPONSE_BODY,
9
+ Helios::OpenTelemetry::SemanticAttributes::HTTP_RESPONSE_HEADERS,
10
+ Helios::OpenTelemetry::SemanticAttributes::HTTP_REQUEST_BODY,
11
+ Helios::OpenTelemetry::SemanticAttributes::HTTP_REQUEST_HEADERS
12
+ ]
13
+
5
14
  class HeliosProcessor < ::OpenTelemetry::SDK::Trace::Export::BatchSpanProcessor
15
+ def initialize(exporter, metadata_only = False)
16
+ @metadata_only = metadata_only
17
+ super(exporter)
18
+ end
19
+
6
20
  def on_start(span, parent_context)
7
21
  baggage = ::OpenTelemetry::Baggage.values(context: parent_context)
8
22
  return unless baggage.key?(HELIOS_TEST_TRIGGERED_TRACE)
9
23
 
10
24
  span.set_attribute(HELIOS_TEST_TRIGGERED_TRACE, 'true')
25
+
26
+ super(span, parent_context)
27
+ end
28
+
29
+ def on_finish(span)
30
+ if @metadata_only
31
+ new_attributes = span.attributes.dup.reject { |k, _| ATTRIBUTES_TO_DROP.include?(k) }
32
+ span.instance_variable_set(:@attributes, new_attributes)
33
+ end
34
+
35
+ super(span)
11
36
  end
12
37
  end
@@ -26,7 +26,7 @@ SUPPORTED_INSTRUMENTATIONS = {
26
26
  'OpenTelemetry::Instrumentation::Net::HTTP' => {},
27
27
  'OpenTelemetry::Instrumentation::Koala' => {},
28
28
  'OpenTelemetry::Instrumentation::LMDB' => {},
29
- 'OpenTelemetry::Instrumentation::Mongo' => {},
29
+ 'OpenTelemetry::Instrumentation::Mongo' => { db_statement: :include },
30
30
  'OpenTelemetry::Instrumentation::Mysql2' => {},
31
31
  'OpenTelemetry::Instrumentation::PG' => {},
32
32
  'OpenTelemetry::Instrumentation::Que' => { propagation_style: :child },
@@ -25,7 +25,7 @@ module MongoPatch
25
25
  value = if v.is_a?(Hash)
26
26
  mask(v)
27
27
  elsif @obfuscate
28
- MASK_VALUE
28
+ '?'
29
29
  else
30
30
  v
31
31
  end
@@ -1,7 +1,7 @@
1
1
  module Helios
2
2
  module OpenTelemetry
3
3
  module SDK
4
- VERSION = '0.1.21'
4
+ VERSION = '0.2.0'
5
5
  end
6
6
  end
7
7
  end
@@ -38,7 +38,7 @@ module Helios
38
38
  end
39
39
  c.resource = ::OpenTelemetry::SDK::Resources::Resource.create(resource_attrs)
40
40
  apply_instrumentations(c)
41
- c.add_span_processor(HeliosProcessor.new(get_span_exporter(helios_config)))
41
+ c.add_span_processor(HeliosProcessor.new(get_span_exporter(helios_config), helios_config[:metadata_only]))
42
42
  puts 'Helios tracing initialized (' \
43
43
  "service: #{service_name}, " \
44
44
  "token: #{api_token[0, 3]}*****, " \
@@ -89,9 +89,11 @@ if auto_tracing_mode?
89
89
  api_token = ENV['HS_TOKEN']
90
90
  service_name = ENV['HS_SERVICE_NAME']
91
91
  environment = ENV['HS_ENVIRONMENT']
92
+ metadata_only = ENV['HS_METADATA_ONLY'].lowercase == 'true'
92
93
  enable = true
93
94
  Helios::OpenTelemetry::SDK.initialize(api_token: api_token,
94
95
  service_name: service_name,
95
96
  environment: environment,
97
+ metadata_only: metadata_only,
96
98
  enable: enable)
97
99
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helios-opentelemetry-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Team Helios
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-17 00:00:00.000000000 Z
11
+ date: 2023-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,56 +58,56 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 1.1.0
61
+ version: 1.2.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 1.1.0
68
+ version: 1.2.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: opentelemetry-exporter-otlp
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.22.0
75
+ version: 0.24.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.22.0
82
+ version: 0.24.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: opentelemetry-instrumentation-all
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.25.0
89
+ version: 0.35.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.25.0
96
+ version: 0.35.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: opentelemetry-instrumentation-rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.2.0
103
+ version: 0.3.0
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.2.0
110
+ version: 0.3.0
111
111
  description: Helios OpenTelemetry SDK for Ruby
112
112
  email:
113
113
  - support@gethelios.dev
@@ -150,7 +150,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
150
150
  requirements:
151
151
  - - ">="
152
152
  - !ruby/object:Gem::Version
153
- version: '2.3'
153
+ version: '3.0'
154
154
  required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - ">="