opentelemetry-instrumentation-rack 0.9.0 → 0.13.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: da15eb1a7360a4c6a0189f07aebf122466941c4ddd163563889875ac323beb95
4
- data.tar.gz: 12cd308af1eb73f7c9677f3822d9c3b683205115d0ee13878763ea0aaf6e5233
3
+ metadata.gz: 0dfb36f720e7c29d75aa43e7704bcdcbc48f7d372c26ac8375369cab8488fdf1
4
+ data.tar.gz: 866c30087a8a130be2e77ffdbc93c788afa6f1710d9e1c777721b8ecf2ffc0e9
5
5
  SHA512:
6
- metadata.gz: aa1477e77df5e4607c51a0efba92bcf70faa77d2e06eb96e60a4ee7caae4385b8024e04bf1de2c1373880f11946b5d5d87e0d692af51a26bdd4d4e37e91a494b
7
- data.tar.gz: 7cc00ac3bc8d68e124e9c61c1f7805995f208fd5003cb8259252252373239485daf2234e1af89951441c20ce919f6c91424fcf9abafee045ff89f929fa95206d
6
+ metadata.gz: 9aa4b46b9fad82880a7bf4dba1d537cab64d9bd4743fb6bf6d6c71aed9c6a4d960bf3cd036e170d6bc0ea826b73a0342dcf4204931f406e03d45406b10dc0294
7
+ data.tar.gz: a03e4a30b5e2c82047cbbd8b490e06dbe92e792b7f8d8c0481c4ed45397768e7e924520ec660205cb28a4064748e40e4e61ddd584d48de21bcf2e276a170ba97
@@ -1,5 +1,25 @@
1
1
  # Release History: opentelemetry-instrumentation-rack
2
2
 
3
+ ### v0.13.0 / 2021-01-29
4
+
5
+ * FIXED: Only include user agent when present
6
+
7
+ ### v0.12.0 / 2020-12-24
8
+
9
+ * (No significant changes)
10
+
11
+ ### v0.11.0 / 2020-12-11
12
+
13
+ * FIXED: Copyright comments to not reference year
14
+
15
+ ### v0.10.1 / 2020-12-09
16
+
17
+ * FIXED: Rack current_span
18
+
19
+ ### v0.10.0 / 2020-12-03
20
+
21
+ * (No significant changes)
22
+
3
23
  ### v0.9.0 / 2020-11-27
4
24
 
5
25
  * BREAKING CHANGE: Add timeout for force_flush and shutdown
data/LICENSE CHANGED
@@ -186,7 +186,7 @@
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2020 OpenTelemetry Authors
189
+ Copyright The OpenTelemetry Authors
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -32,7 +32,7 @@ end
32
32
 
33
33
  ## Examples
34
34
 
35
- Example usage can be seen in the `./example/trace_demonstration.rb` file [here](https://github.com/open-telemetry/opentelemetry-ruby/blob/master/instrumentation/rack/example/trace_demonstration.rb)
35
+ 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)
36
36
 
37
37
  ## How can I get involved?
38
38
 
@@ -47,7 +47,7 @@ The `opentelemetry-instrumentation-rack` gem is distributed under the Apache 2.0
47
47
  [rack-home]: https://github.com/rack/rack
48
48
  [bundler-home]: https://bundler.io
49
49
  [repo-github]: https://github.com/open-telemetry/opentelemetry-ruby
50
- [license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/master/LICENSE
50
+ [license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/main/LICENSE
51
51
  [ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
52
52
  [community-meetings]: https://github.com/open-telemetry/community#community-meetings
53
53
  [ruby-gitter]: https://gitter.im/open-telemetry/opentelemetry-ruby
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 OpenTelemetry Authors
3
+ # Copyright The OpenTelemetry Authors
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 OpenTelemetry Authors
3
+ # Copyright The OpenTelemetry Authors
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 OpenTelemetry Authors
3
+ # Copyright The OpenTelemetry Authors
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
@@ -22,7 +22,7 @@ module OpenTelemetry
22
22
  # {Span} from. Defaults to Context.current
23
23
  def current_span(context = nil)
24
24
  context ||= Context.current
25
- context.value(CURRENT_SPAN_KEY) || Span::INVALID
25
+ context.value(CURRENT_SPAN_KEY) || OpenTelemetry::Trace::Span::INVALID
26
26
  end
27
27
 
28
28
  # Returns a context containing the span, derived from the optional parent
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 OpenTelemetry Authors
3
+ # Copyright The OpenTelemetry Authors
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 OpenTelemetry Authors
3
+ # Copyright The OpenTelemetry Authors
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
@@ -101,13 +101,14 @@ module OpenTelemetry
101
101
  end
102
102
 
103
103
  def request_span_attributes(env:)
104
- {
104
+ attributes = {
105
105
  'http.method' => env['REQUEST_METHOD'],
106
106
  'http.host' => env['HTTP_HOST'] || 'unknown',
107
107
  'http.scheme' => env['rack.url_scheme'],
108
- 'http.target' => fullpath(env),
109
- 'http.user_agent' => env['HTTP_USER_AGENT']
110
- }.merge(allowed_request_headers(env))
108
+ 'http.target' => fullpath(env)
109
+ }
110
+ attributes['http.user_agent'] = env['HTTP_USER_AGENT'] if env['HTTP_USER_AGENT']
111
+ attributes.merge(allowed_request_headers(env))
111
112
  end
112
113
 
113
114
  # e.g., "/webshop/articles/4?s=1":
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 OpenTelemetry Authors
3
+ # Copyright The OpenTelemetry Authors
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
@@ -1,13 +1,13 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Copyright 2020 OpenTelemetry Authors
3
+ # Copyright The OpenTelemetry Authors
4
4
  #
5
5
  # SPDX-License-Identifier: Apache-2.0
6
6
 
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Rack
10
- VERSION = '0.9.0'
10
+ VERSION = '0.13.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.9.0
4
+ version: 0.13.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: 2020-11-28 00:00:00.000000000 Z
11
+ date: 2021-01-30 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.9.0
19
+ version: 0.13.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.9.0
26
+ version: 0.13.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.9.0/file.CHANGELOG.html
218
- source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/master/instrumentation/rack
217
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-rack/v0.13.0/file.CHANGELOG.html
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.9.0
220
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-rack/v0.13.0
221
221
  post_install_message:
222
222
  rdoc_options: []
223
223
  require_paths: