opentelemetry-instrumentation-rack 0.16.0 → 0.19.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: e590fbce994926aefc1383ded5c958e163762001b59f045bd5e88bb6eb804790
4
- data.tar.gz: 46d516be35be8e1fa04f9626099522f666bcf952f911626a3f178a5269ee7ee8
3
+ metadata.gz: 228151210336da2dfd5de3b52b7fc4f7769426e747f08cad677b7454ba18bf14
4
+ data.tar.gz: 905cab9c063c55e623736f6e5fbada1f45953f19881beb7984491f04b589063a
5
5
  SHA512:
6
- metadata.gz: b50451413b3f591eb862c2c0f5699b74950d4d4af74b8f58268c3c9de38fbb13fd3dac43b6b4398fc64de8eefa615eeb8a004097741034c79155f5e96088c707
7
- data.tar.gz: 9ec785d592cf0582f93fd4380385ea8457c66f84026834ad92c1f4f7feb5845d9f6fe3181a8d800e6d0307ee3fb7b1d49632f03344a68230e971abd96e209d51
6
+ metadata.gz: fbdaf46886f7a324f32c0a4f965ef296074ec483db4d8bce05de4d0b7a9a38b927f4dd745bef91dd5b3a20ccfa12fdb92a2a789fae24663101c392028e83c148
7
+ data.tar.gz: 7c318d0d832c000b38dd1dd513484a89cbda7934d95120f0a3fa2874305cc4afcdcbcbec34911b0c636896f2e6b270e60e4a824b91bde34dd76e83ad4ec18d57
data/CHANGELOG.md CHANGED
@@ -1,28 +1,48 @@
1
1
  # Release History: opentelemetry-instrumentation-rack
2
2
 
3
+ ### v0.19.1 / 2021-08-12
4
+
5
+ * DOCS: Update docs to rely more on environment variable configuration
6
+
7
+ ### v0.19.0 / 2021-06-23
8
+
9
+ * BREAKING CHANGE: Total order constraint on span.status=
10
+
11
+ * ADDED: Add Tracer.non_recording_span to API
12
+ * FIXED: Total order constraint on span.status=
13
+
14
+ ### v0.18.0 / 2021-05-21
15
+
16
+ * ADDED: Updated API depedency for 1.0.0.rc1
17
+ * FIXED: Removed http.status_text attribute #750
18
+
19
+ ### v0.17.0 / 2021-04-22
20
+
21
+ * (No significant changes)
22
+
3
23
  ### v0.16.0 / 2021-03-17
4
24
 
5
- * BREAKING CHANGE: Pass env to url quantization rack config to allow more flexibility
25
+ * BREAKING CHANGE: Pass env to url quantization rack config to allow more flexibility
6
26
 
7
- * ADDED: Pass env to url quantization rack config to allow more flexibility
8
- * ADDED: Add rack instrumentation config option to accept callable to filter requests to trace
9
- * FIXED: Example scripts now reference local common lib
10
- * DOCS: Replace Gitter with GitHub Discussions
27
+ * ADDED: Pass env to url quantization rack config to allow more flexibility
28
+ * ADDED: Add rack instrumentation config option to accept callable to filter requests to trace
29
+ * FIXED: Example scripts now reference local common lib
30
+ * DOCS: Replace Gitter with GitHub Discussions
11
31
 
12
32
  ### v0.15.0 / 2021-02-18
13
33
 
14
- * ADDED: Add instrumentation config validation
34
+ * ADDED: Add instrumentation config validation
15
35
 
16
36
  ### v0.14.0 / 2021-02-03
17
37
 
18
- * BREAKING CHANGE: Replace getter and setter callables and remove rack specific propagators
38
+ * BREAKING CHANGE: Replace getter and setter callables and remove rack specific propagators
19
39
 
20
- * ADDED: Replace getter and setter callables and remove rack specific propagators
21
- * ADDED: Add untraced endpoints config to rack middleware
40
+ * ADDED: Replace getter and setter callables and remove rack specific propagators
41
+ * ADDED: Add untraced endpoints config to rack middleware
22
42
 
23
43
  ### v0.13.0 / 2021-01-29
24
44
 
25
- * FIXED: Only include user agent when present
45
+ * FIXED: Only include user agent when present
26
46
 
27
47
  ### v0.12.0 / 2020-12-24
28
48
 
@@ -30,11 +50,11 @@
30
50
 
31
51
  ### v0.11.0 / 2020-12-11
32
52
 
33
- * FIXED: Copyright comments to not reference year
53
+ * FIXED: Copyright comments to not reference year
34
54
 
35
55
  ### v0.10.1 / 2020-12-09
36
56
 
37
- * FIXED: Rack current_span
57
+ * FIXED: Rack current_span
38
58
 
39
59
  ### v0.10.0 / 2020-12-03
40
60
 
@@ -42,24 +62,24 @@
42
62
 
43
63
  ### v0.9.0 / 2020-11-27
44
64
 
45
- * BREAKING CHANGE: Add timeout for force_flush and shutdown
65
+ * BREAKING CHANGE: Add timeout for force_flush and shutdown
46
66
 
47
- * ADDED: Instrument rails
48
- * ADDED: Add timeout for force_flush and shutdown
67
+ * ADDED: Instrument rails
68
+ * ADDED: Add timeout for force_flush and shutdown
49
69
 
50
70
  ### v0.8.0 / 2020-10-27
51
71
 
52
- * BREAKING CHANGE: Move context/span methods to Trace module
53
- * BREAKING CHANGE: Remove 'canonical' from status codes
72
+ * BREAKING CHANGE: Move context/span methods to Trace module
73
+ * BREAKING CHANGE: Remove 'canonical' from status codes
54
74
 
55
- * FIXED: Move context/span methods to Trace module
56
- * FIXED: Remove 'canonical' from status codes
75
+ * FIXED: Move context/span methods to Trace module
76
+ * FIXED: Remove 'canonical' from status codes
57
77
 
58
78
  ### v0.7.0 / 2020-10-07
59
79
 
60
- * FIXED: Remove superfluous file from Rack gem
61
- * DOCS: Added README for Rack Instrumentation
62
- * DOCS: Standardize toplevel docs structure and readme
80
+ * FIXED: Remove superfluous file from Rack gem
81
+ * DOCS: Added README for Rack Instrumentation
82
+ * DOCS: Standardize toplevel docs structure and readme
63
83
 
64
84
  ### v0.6.0 / 2020-09-10
65
85
 
@@ -5,6 +5,7 @@
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
7
7
  require 'opentelemetry'
8
+ require 'opentelemetry-instrumentation-base'
8
9
 
9
10
  module OpenTelemetry
10
11
  module Instrumentation
@@ -153,13 +153,12 @@ module OpenTelemetry
153
153
  end
154
154
 
155
155
  def set_attributes_after_request(span, status, headers, _response)
156
- span.status = OpenTelemetry::Trace::Status.http_to_status(status)
156
+ span.status = OpenTelemetry::Trace::Status.error unless (100..399).include?(status.to_i)
157
157
  span.set_attribute('http.status_code', status)
158
158
 
159
159
  # NOTE: if data is available, it would be good to do this:
160
160
  # set_attribute('http.route', ...
161
161
  # e.g., "/users/:userID?
162
- span.set_attribute('http.status_text', ::Rack::Utils::HTTP_STATUS_CODES[status])
163
162
 
164
163
  allowed_response_headers(headers).each { |k, v| span.set_attribute(k, v) }
165
164
  end
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Rack
10
- VERSION = '0.16.0'
10
+ VERSION = '0.19.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.16.0
4
+ version: 0.19.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: 2021-03-22 00:00:00.000000000 Z
11
+ date: 2021-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -16,14 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.16.0
19
+ version: 1.0.0.rc3
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.16.0
26
+ version: 1.0.0.rc3
27
+ - !ruby/object:Gem::Dependency
28
+ name: opentelemetry-instrumentation-base
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.18.2
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.18.2
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: appraisal
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +86,14 @@ dependencies:
72
86
  requirements:
73
87
  - - "~>"
74
88
  - !ruby/object:Gem::Version
75
- version: '0.0'
89
+ version: 1.0.0.rc1
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
94
  - - "~>"
81
95
  - !ruby/object:Gem::Version
82
- version: '0.0'
96
+ version: 1.0.0.rc1
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: rack
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -214,10 +228,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
214
228
  licenses:
215
229
  - Apache-2.0
216
230
  metadata:
217
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-rack/v0.16.0/file.CHANGELOG.html
231
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-rack/v0.19.1/file.CHANGELOG.html
218
232
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/rack
219
233
  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.16.0
234
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-rack/v0.19.1
221
235
  post_install_message:
222
236
  rdoc_options: []
223
237
  require_paths:
@@ -233,7 +247,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
247
  - !ruby/object:Gem::Version
234
248
  version: '0'
235
249
  requirements: []
236
- rubygems_version: 3.1.4
250
+ rubygems_version: 3.1.6
237
251
  signing_key:
238
252
  specification_version: 4
239
253
  summary: Rack instrumentation for the OpenTelemetry framework