opentelemetry-instrumentation-rack 0.14.0 → 0.15.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: e9824c0e3b21a61e9c69c51e68dae7c56c93dbc03a7bec1ce73d2e2876d14d11
4
- data.tar.gz: 9e72aba3d3819902feb17b41b6b4203fbee4435c418b6f828f6a1336697c13dd
3
+ metadata.gz: ad21d239ad4a5008e97531f80a7e66bc4b994b9723257921a5762b4141423099
4
+ data.tar.gz: 415138c23cdd98cc069a19ebb0aefa6d5be613517b7bf7ab9392a641cae503bd
5
5
  SHA512:
6
- metadata.gz: c0bf72d4acdb549a9ce22e2de5ec8618e7a9a4534623203c66c039ed9165f06afaae6399b2d879b802f1c5ec39bf70193136396f11a07dd6521c2901c32029f2
7
- data.tar.gz: 7e7b9fb9a10ccc9bf0b055dc479375c0e88a957a0f576ad2b9a70472c9517456fdb1d6caf1af15300426176dc770c132253ab40ed132efc0850496fb5e2451bc
6
+ metadata.gz: 3dee2f0c3eb4f16d4c23e0d15d33d287b73c3a1767fa312583f1165d2f2b704cfd9a279f3309b06604a4cf364036f7dbd0bd0465c8ba0beb27c4db18f8bca918
7
+ data.tar.gz: 64174578aeb8e18bdffc0cd7a92074708d9cdba56713b96d4a94e058a9e5399a26033bca846945c96d6d509c5dcfbbe3ba5c1f4c941086269a1855b2e4314ccc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History: opentelemetry-instrumentation-rack
2
2
 
3
+ ### v0.15.0 / 2021-02-18
4
+
5
+ * ADDED: Add instrumentation config validation
6
+
3
7
  ### v0.14.0 / 2021-02-03
4
8
 
5
9
  * BREAKING CHANGE: Replace getter and setter callables and remove rack specific propagators
@@ -22,6 +22,14 @@ module OpenTelemetry
22
22
  defined?(::Rack)
23
23
  end
24
24
 
25
+ option :allowed_request_headers, default: [], validate: :array
26
+ option :allowed_response_headers, default: [], validate: :array
27
+ option :application, default: nil, validate: :callable
28
+ option :record_frontend_span, default: false, validate: :boolean
29
+ option :retain_middleware_names, default: false, validate: :boolean
30
+ option :untraced_endpoints, default: [], validate: :array
31
+ option :url_quantization, default: nil, validate: :callable
32
+
25
33
  private
26
34
 
27
35
  def require_dependencies
@@ -49,7 +49,7 @@ module OpenTelemetry
49
49
 
50
50
  def initialize(app)
51
51
  @app = app
52
- @untraced_endpoints = config[:untraced_endpoints].is_a?(Array) ? config[:untraced_endpoints] : []
52
+ @untraced_endpoints = config[:untraced_endpoints]
53
53
  end
54
54
 
55
55
  def call(env) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Rack
10
- VERSION = '0.14.0'
10
+ VERSION = '0.15.0'
11
11
  end
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opentelemetry-instrumentation-rack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.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: 2021-02-03 00:00:00.000000000 Z
11
+ date: 2021-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.0
19
+ version: 0.15.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.14.0
26
+ version: 0.15.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: appraisal
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -214,10 +214,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
214
214
  licenses:
215
215
  - Apache-2.0
216
216
  metadata:
217
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-rack/v0.14.0/file.CHANGELOG.html
217
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-rack/v0.15.0/file.CHANGELOG.html
218
218
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/rack
219
219
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
220
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-rack/v0.14.0
220
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-rack/v0.15.0
221
221
  post_install_message:
222
222
  rdoc_options: []
223
223
  require_paths: