opentelemetry-instrumentation-grape 0.1.5 → 0.1.6

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: e0c48f73e95682db67262f5056c1517e0f8b949317c0aa8d2e2d5aada7fef718
4
- data.tar.gz: 8d5c2a23dbbe5a611d7e7b8fd156f24d200a007d27358d6f061d48f7c168b60a
3
+ metadata.gz: dec742a7c129228b707e0bdef7f4ed0026f55f533d23ed7f2978ba2524770176
4
+ data.tar.gz: ed9bbe93e09bc6d43d8126f8d7b3bb6e3220e449c6fd2948a3e720ca3f482ee8
5
5
  SHA512:
6
- metadata.gz: 419aa65b2e813b652e4b5ea4f4115acfdc77e934ba8b19bc3d19383ca55b62fd15840064d8ce7db6733a33fd480c059094521611225ca8cbb938b2a10bcf3876
7
- data.tar.gz: fddca1cade5cb358b7e97b0fb64d272e0b35d84396322575817d95571a227153fcff17ef3afc1503679bced7317a12d5e705c25694d72ebe3695d407d8d9c780
6
+ metadata.gz: 4e308bc27eece0ed9661d2849a16ff32656a50ec66fd22b22437b40a9b967bc0eaf2742646f202f2ca6bbadeb1a7c4caae715e16bb268f583a0333e329cff706
7
+ data.tar.gz: c6b4f7a8009c7eb2b991ec5179a87dbf488038b5c2edf85843f66619c42320a1161516edddff2af7bc96a8203a0658a58254892f27c766442b128743d61c5fc3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-grape
2
2
 
3
+ ### v0.1.6 / 2023-11-23
4
+
5
+ * CHANGED: Applied Rubocop Performance Recommendations [#727](https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/727)
6
+
3
7
  ### v0.1.5 / 2023-10-31
4
8
 
5
9
  * FIXED: Remove dependency on ActiveSupport core extensions from Grape instrumentation
@@ -79,7 +79,7 @@ module OpenTelemetry
79
79
  # Only record exceptions if they were not raised (i.e. do not have a status code in Grape)
80
80
  # or do not have a 5xx status code. These exceptions are recorded by Rack.
81
81
  # See instrumentation/rack/lib/opentelemetry/instrumentation/rack/middlewares/tracer_middleware.rb#L155
82
- return unless exception.respond_to?('status') && ::Rack::Utils.status_code(exception.status) < 500
82
+ return unless exception.respond_to?(:status) && ::Rack::Utils.status_code(exception.status) < 500
83
83
 
84
84
  span.record_exception(exception)
85
85
  span.status = OpenTelemetry::Trace::Status.error("Unhandled exception of type: #{exception.class}")
@@ -108,7 +108,7 @@ module OpenTelemetry
108
108
  end
109
109
 
110
110
  def built_in_grape_formatter?(formatter)
111
- formatter.respond_to?('name') && formatter.name.include?('Grape::Formatter')
111
+ formatter.respond_to?(:name) && formatter.name.include?('Grape::Formatter')
112
112
  end
113
113
  end
114
114
  end
@@ -8,7 +8,7 @@ module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Grape
10
10
  # Current gem version
11
- VERSION = '0.1.5'
11
+ VERSION = '0.1.6'
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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-31 00:00:00.000000000 Z
11
+ date: 2023-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -206,6 +206,20 @@ dependencies:
206
206
  - - "~>"
207
207
  - !ruby/object:Gem::Version
208
208
  version: 1.56.1
209
+ - !ruby/object:Gem::Dependency
210
+ name: rubocop-performance
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: 1.19.1
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: 1.19.1
209
223
  - !ruby/object:Gem::Dependency
210
224
  name: simplecov
211
225
  requirement: !ruby/object:Gem::Requirement
@@ -270,10 +284,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby-contrib
270
284
  licenses:
271
285
  - Apache-2.0
272
286
  metadata:
273
- changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-grape/0.1.5/file/CHANGELOG.md
287
+ changelog_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-grape/0.1.6/file/CHANGELOG.md
274
288
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/grape
275
289
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
276
- documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-grape/0.1.5
290
+ documentation_uri: https://rubydoc.info/gems/opentelemetry-instrumentation-grape/0.1.6
277
291
  post_install_message:
278
292
  rdoc_options: []
279
293
  require_paths: