opentelemetry-instrumentation-rack 0.20.2 → 0.21.1

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: ac4a58d7625183e4c21d3e46db230f33a7cbffba733cfce9458750c1eaf0cd1f
4
- data.tar.gz: 9d2328bea5c516b009b82d8fcfd4bba1ccce2a106fa1bdfae353053264b5794f
3
+ metadata.gz: 6f278dcab51bfde3bb031fd0a72b9e7803140bb20766dd7be29682b79b92619b
4
+ data.tar.gz: 36446c32123ed6f5b6b29a46f320f2d5dbf8cea68ea7e17ac07c7d0b2275c24b
5
5
  SHA512:
6
- metadata.gz: 64387f52f98e5fb157640f3a5ec1fe6a47a2df397b8c28436f15dbcfadb1a35dc82f3f3f1102d1a81fa3d97088a8a7754c3d12a49375c265965f0c940f28876f
7
- data.tar.gz: d7ce5b0ad0453f929abf40b0ccca1634270b3b2048f6e8eff9de6d301a82344120963f99e9f811156abda172b0a10c50380f9f8094f7b8b9e3e65dcd51744297
6
+ metadata.gz: ebb6c000493e4a44533e2ba5eb79da1002aafd026f6a0ca9e3815937cd30f1d368eec188b8fca013b7fa046684003a4c655b898e41721ad6bcea05bb4f8113f2
7
+ data.tar.gz: 830013eb52e3be887be3d716bc1562df8938a0587053140b176bee53f159900e104729be98b832bf0c252ed3f5898e5d54820db0e674c0260eabdc7868e06c81
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release History: opentelemetry-instrumentation-rack
2
2
 
3
+ ### v0.21.1 / 2022-10-04
4
+
5
+ * FIXED: Bring http.request.header and http.response.header in line with semconv
6
+
7
+ ### v0.21.0 / 2022-06-09
8
+
9
+ * Upgrading Base dependency version
10
+ * FIXED: Broken test file requirements
11
+
3
12
  ### v0.20.2 / 2022-05-02
4
13
 
5
14
  * FIXED: Update server instrumentation to not reflect 400 status as error
data/README.md CHANGED
@@ -37,7 +37,7 @@ By default we will set the rack span name to match the format "HTTP #{method}" (
37
37
 
38
38
  We surface a hook to easily retrieve the rack span within the context of a request so that you can add information to or rename your server span.
39
39
 
40
- This is how the rails controller instrumentation is able to rename the span names to match the controller and action that process the request. See https://github.com/open-telemetry/opentelemetry-ruby/blob/f6fb025bef69f839078748f56516ce38c7d51eb8/instrumentation/action_pack/lib/opentelemetry/instrumentation/action_pack/patches/action_controller/metal.rb#L15-L16 for an example.
40
+ This is how the rails controller instrumentation is able to rename the span names to match the controller and action that process the request. See https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/instrumentation/action_pack/lib/opentelemetry/instrumentation/action_pack/patches/action_controller/metal.rb#L15-L16 for an example.
41
41
 
42
42
  ### High cardinality example
43
43
 
@@ -51,7 +51,7 @@ end
51
51
 
52
52
  ## Examples
53
53
 
54
- Example usage can be seen in the `./example/trace_demonstration.rb` file [here](https://github.com/open-telemetry/opentelemetry-ruby/blob/main/instrumentation/rack/example/trace_demonstration.rb)
54
+ Example usage can be seen in the `./example/trace_demonstration.rb` file [here](https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/instrumentation/rack/example/trace_demonstration.rb)
55
55
 
56
56
  ## How can I get involved?
57
57
 
@@ -66,7 +66,7 @@ The `opentelemetry-instrumentation-rack` gem is distributed under the Apache 2.0
66
66
  [rack-home]: https://github.com/rack/rack
67
67
  [bundler-home]: https://bundler.io
68
68
  [repo-github]: https://github.com/open-telemetry/opentelemetry-ruby
69
- [license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/main/LICENSE
69
+ [license-github]: https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/LICENSE
70
70
  [ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
71
71
  [community-meetings]: https://github.com/open-telemetry/community#community-meetings
72
72
  [discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
@@ -21,17 +21,17 @@ module OpenTelemetry
21
21
  key = header.to_s.upcase.gsub(/[-\s]/, '_')
22
22
  case key
23
23
  when 'CONTENT_TYPE', 'CONTENT_LENGTH'
24
- memo[key] = build_attribute_name('http.request.headers.', header)
24
+ memo[key] = build_attribute_name('http.request.header.', header)
25
25
  else
26
- memo["HTTP_#{key}"] = build_attribute_name('http.request.headers.', header)
26
+ memo["HTTP_#{key}"] = build_attribute_name('http.request.header.', header)
27
27
  end
28
28
  end
29
29
  end
30
30
 
31
31
  def allowed_response_headers
32
32
  @allowed_response_headers ||= Array(config[:allowed_response_headers]).each_with_object({}) do |header, memo|
33
- memo[header] = build_attribute_name('http.response.headers.', header)
34
- memo[header.to_s.upcase] = build_attribute_name('http.response.headers.', header)
33
+ memo[header] = build_attribute_name('http.response.header.', header)
34
+ memo[header.to_s.upcase] = build_attribute_name('http.response.header.', header)
35
35
  end
36
36
  end
37
37
 
@@ -58,7 +58,7 @@ module OpenTelemetry
58
58
  @untraced_endpoints = config[:untraced_endpoints]
59
59
  end
60
60
 
61
- def call(env) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
61
+ def call(env) # rubocop:disable Metrics/MethodLength
62
62
  if untraced_request?(env)
63
63
  OpenTelemetry::Common::Utilities.untraced do
64
64
  return @app.call(env)
@@ -16,7 +16,7 @@ module OpenTelemetry
16
16
 
17
17
  module_function
18
18
 
19
- def get_request_start(env, now = nil) # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
19
+ def get_request_start(env, now = nil) # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
20
20
  header = env[REQUEST_START] || env[QUEUE_START]
21
21
  return unless header
22
22
 
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Rack
10
- VERSION = '0.20.2'
10
+ VERSION = '0.21.1'
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.20.2
4
+ version: 0.21.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenTelemetry Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-02 00:00:00.000000000 Z
11
+ date: 2022-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.20.0
47
+ version: 0.21.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.20.0
54
+ version: 0.21.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: appraisal
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,28 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.0'
103
+ version: '1.1'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.0'
110
+ version: '1.1'
111
+ - !ruby/object:Gem::Dependency
112
+ name: opentelemetry-test-helpers
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: rack
113
127
  requirement: !ruby/object:Gem::Requirement
@@ -156,14 +170,14 @@ dependencies:
156
170
  requirements:
157
171
  - - "~>"
158
172
  - !ruby/object:Gem::Version
159
- version: 0.73.0
173
+ version: 1.3.0
160
174
  type: :development
161
175
  prerelease: false
162
176
  version_requirements: !ruby/object:Gem::Requirement
163
177
  requirements:
164
178
  - - "~>"
165
179
  - !ruby/object:Gem::Version
166
- version: 0.73.0
180
+ version: 1.3.0
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: simplecov
169
183
  requirement: !ruby/object:Gem::Requirement
@@ -238,14 +252,14 @@ files:
238
252
  - lib/opentelemetry/instrumentation/rack/middlewares/tracer_middleware.rb
239
253
  - lib/opentelemetry/instrumentation/rack/util/queue_time.rb
240
254
  - lib/opentelemetry/instrumentation/rack/version.rb
241
- homepage: https://github.com/open-telemetry/opentelemetry-ruby
255
+ homepage: https://github.com/open-telemetry/opentelemetry-contrib
242
256
  licenses:
243
257
  - Apache-2.0
244
258
  metadata:
245
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-rack/v0.20.2/file.CHANGELOG.html
246
- source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/rack
247
- bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
248
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-rack/v0.20.2
259
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby-contrib/opentelemetry-instrumentation-rack/v0.21.1/file.CHANGELOG.html
260
+ source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/rack
261
+ bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
262
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby-contrib/opentelemetry-instrumentation-rack/v0.21.1
249
263
  post_install_message:
250
264
  rdoc_options: []
251
265
  require_paths:
@@ -254,7 +268,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
254
268
  requirements:
255
269
  - - ">="
256
270
  - !ruby/object:Gem::Version
257
- version: 2.5.0
271
+ version: 2.6.0
258
272
  required_rubygems_version: !ruby/object:Gem::Requirement
259
273
  requirements:
260
274
  - - ">="