opentelemetry-instrumentation-grape 0.1.8 → 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: 97a7cfca79dce08ec95dbbb196bd6413bf2886e3c93d19f8387fd104a4f3ae61
4
- data.tar.gz: 46a1a999f51818cf24f79e4d825499cde908cd55fffef2e9413981cfd32e847a
3
+ metadata.gz: 86b526b061050bc6eb49ebd29428e18e33c54733b88bd7a90388e94770710ed6
4
+ data.tar.gz: 11929af6407df493626ced6ef698a7f61080aec9865572a1f7690d5a287a34d2
5
5
  SHA512:
6
- metadata.gz: 2047fcc99f8b41257d5ef4b5023081e424995c412228d1f7d619666c46447bdc6d9c87b38c0d0b618512d61e491e1a05febb0356078d548f05aa893b815cf37c
7
- data.tar.gz: e9e16c129e321aa91e6ac9e4f240a34e0994469fd88fe29d7d30d969004ae500e7216aa201206044d099462e50c09712dc965572b14cbf983541b52acae16596
6
+ metadata.gz: 9a56fdebe8bcf09ba8e3178a310d28df1edce1ec7adf8045df390e0f3b2b62427d64a55cdbc89088ede912cb3196f8977c590a56bf00e7f6836eb3b93d3f6e13
7
+ data.tar.gz: aeebd0eccc31b57b71d8e8afe72a420bb8e2be1eb40f0d3a709ebfe8129283b336597e77fb77bde0bb3cf29e8e4fdfce3050258c93cc9350639007aaa6cab437
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-grape
2
2
 
3
+ ### v0.2.0 / 2024-07-02
4
+
5
+ * ADDED: Make the install of rack instrumentation by grape instrumentation optional
6
+
3
7
  ### v0.1.8 / 2024-05-14
4
8
 
5
9
  * DOCS: Instrumentation Authors Guide
@@ -8,6 +8,16 @@ module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Grape
10
10
  # The Instrumentation class contains logic to detect and install the Grape instrumentation
11
+ # # Configuration keys and options
12
+ # ## `:ignored_events`
13
+ #
14
+ # Default is `[]`. Specifies which ActiveSupport::Notifications events published by Grape to ignore.
15
+ # Ignored events will not be published as Span events.
16
+ #
17
+ # ## `:install_rack`
18
+ #
19
+ # Default is `true`. Specifies whether or not to install the Rack instrumentation as part of installing the Grape instrumentation.
20
+ # This is useful in cases where you have multiple Rack applications but want to manually specify where to insert the tracing middleware.
11
21
  class Instrumentation < OpenTelemetry::Instrumentation::Base
12
22
  # Minimum Grape version needed for compatibility with this instrumentation
13
23
  MINIMUM_VERSION = Gem::Version.new('1.2.0')
@@ -27,6 +37,7 @@ module OpenTelemetry
27
37
  end
28
38
 
29
39
  option :ignored_events, default: [], validate: :array
40
+ option :install_rack, default: true, validate: :boolean
30
41
 
31
42
  private
32
43
 
@@ -35,6 +46,8 @@ module OpenTelemetry
35
46
  end
36
47
 
37
48
  def install_rack_instrumentation
49
+ return unless config[:install_rack]
50
+
38
51
  OpenTelemetry::Instrumentation::Rack::Instrumentation.instance.install({})
39
52
  end
40
53
 
@@ -8,7 +8,7 @@ module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Grape
10
10
  # Current gem version
11
- VERSION = '0.1.8'
11
+ VERSION = '0.2.0'
12
12
  end
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-instrumentation-grape
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-14 00:00:00.000000000 Z
11
+ date: 2024-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '1.62'
187
+ version: 1.64.0
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: '1.62'
194
+ version: 1.64.0
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: rubocop-performance
197
197
  requirement: !ruby/object:Gem::Requirement
@@ -270,10 +270,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
270
270
  licenses:
271
271
  - Apache-2.0
272
272
  metadata:
273
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-grape/0.1.8/file/CHANGELOG.md
273
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-grape/0.2.0/file/CHANGELOG.md
274
274
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/grape
275
275
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
276
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-grape/0.1.8
276
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-grape/0.2.0
277
277
  post_install_message:
278
278
  rdoc_options: []
279
279
  require_paths: