opentelemetry-instrumentation-grape 0.1.7 → 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: c0b1e78c8286ec2d903c954aadd9bb91b60504e6e663b4c3ea6b4d105299a2ce
4
- data.tar.gz: deca9c6ec14dcf3fc325cb5ad293f5a29d4b9539b5dd07b0fc9d2918a60e9fc0
3
+ metadata.gz: 86b526b061050bc6eb49ebd29428e18e33c54733b88bd7a90388e94770710ed6
4
+ data.tar.gz: 11929af6407df493626ced6ef698a7f61080aec9865572a1f7690d5a287a34d2
5
5
  SHA512:
6
- metadata.gz: 75fac3957427847bf8b4addbf454b697ed71c7bfc1a3863b15acffe5b2fc88f053b63a31ac36a7017fe46e7377f64f89e9be88dce681ceaa697a7c218b03bf51
7
- data.tar.gz: 305d5b7a5e996934f0c3293854f2ccba310cb555f41bbabf211fef8ed32161f6fa12491984b4ae83786b6bae8f56054d0859f649a0160360355fcd616401d3d5
6
+ metadata.gz: 9a56fdebe8bcf09ba8e3178a310d28df1edce1ec7adf8045df390e0f3b2b62427d64a55cdbc89088ede912cb3196f8977c590a56bf00e7f6836eb3b93d3f6e13
7
+ data.tar.gz: aeebd0eccc31b57b71d8e8afe72a420bb8e2be1eb40f0d3a709ebfe8129283b336597e77fb77bde0bb3cf29e8e4fdfce3050258c93cc9350639007aaa6cab437
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.1.8 / 2024-05-14
8
+
9
+ * DOCS: Instrumentation Authors Guide
10
+
3
11
  ### v0.1.7 / 2024-04-30
4
12
 
5
13
  * FIXED: Bundler conflict warnings
@@ -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.7'
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.7
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-04-30 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.7/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.7
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: