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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86b526b061050bc6eb49ebd29428e18e33c54733b88bd7a90388e94770710ed6
|
4
|
+
data.tar.gz: 11929af6407df493626ced6ef698a7f61080aec9865572a1f7690d5a287a34d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a56fdebe8bcf09ba8e3178a310d28df1edce1ec7adf8045df390e0f3b2b62427d64a55cdbc89088ede912cb3196f8977c590a56bf00e7f6836eb3b93d3f6e13
|
7
|
+
data.tar.gz: aeebd0eccc31b57b71d8e8afe72a420bb8e2be1eb40f0d3a709ebfe8129283b336597e77fb77bde0bb3cf29e8e4fdfce3050258c93cc9350639007aaa6cab437
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
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.
|
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-
|
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:
|
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:
|
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.
|
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.
|
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:
|