opentelemetry-instrumentation-http 0.18.0 → 0.19.3

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: 29a0b4326d8a65603297cbf2daa8204719193d945825dff16e0090f1fd56b382
4
- data.tar.gz: f173617ad970ab1be20315d2be6d40294f43b590e07255f03c7c08dcf09e9b3a
3
+ metadata.gz: d662117ed848fbc48a2521e34d1278288b366f36460721f57657e4a3747fccf2
4
+ data.tar.gz: c0cfa91c5795503c5a82cab32c4f6a206386aeb19407ab5cf7f4afb0dd9ec5ed
5
5
  SHA512:
6
- metadata.gz: b946789ef49735370a89e340dbc800af65cf90e76df7389696c7afb7d4e20146735ef24e68d9f845df2a357ae85ad0902b36e72712e0ee265ad367ecc6d8c4e3
7
- data.tar.gz: 129876719d483cb4cbbf86ff2fc683de354df9f0ab6dca1c482e8de5da3d74dbf5b1c9a74bf9ec0846b1acf5807e365ef5f64387586af6ffb6f60b5905f05bdc
6
+ metadata.gz: c911390b5be8366be040148ab203db9e5da115d04069e6d5181ca1e35dd876e007fd64e147d662abf54b90d0c7aac98a261ebef70575ee4b4b02877123cfc250
7
+ data.tar.gz: fff6adf48925ecf3b0d8331aaaef5ec6c6a19b723e4310268ff4d11075884512c636cc7348b91886a3f8e4c5a9e6e0c6e04ffcf3ee9f52e510daace3a0425dc3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Release History: opentelemetry-instrumentation-http
2
2
 
3
+ ### v0.19.3 / 2021-12-01
4
+
5
+ * FIXED: Change net attribute names to match the semantic conventions spec for http
6
+
7
+ ### v0.19.2 / 2021-09-29
8
+
9
+ * (No significant changes)
10
+
11
+ ### v0.19.1 / 2021-08-12
12
+
13
+ * (No significant changes)
14
+
15
+ ### v0.19.0 / 2021-06-23
16
+
17
+ * BREAKING CHANGE: Total order constraint on span.status=
18
+
19
+ * FIXED: Total order constraint on span.status=
20
+
3
21
  ### v0.18.0 / 2021-05-21
4
22
 
5
23
  * ADDED: Updated API depedency for 1.0.0.rc1
@@ -19,8 +19,8 @@ module OpenTelemetry
19
19
  'http.scheme' => uri.scheme,
20
20
  'http.target' => uri.path,
21
21
  'http.url' => "#{uri.scheme}://#{uri.host}",
22
- 'peer.hostname' => uri.host,
23
- 'peer.port' => uri.port
22
+ 'net.peer.name' => uri.host,
23
+ 'net.peer.port' => uri.port
24
24
  }.merge(OpenTelemetry::Common::HTTP::ClientContext.attributes)
25
25
 
26
26
  tracer.in_span("HTTP #{request_method}", attributes: attributes, kind: :client) do |span|
@@ -38,7 +38,7 @@ module OpenTelemetry
38
38
 
39
39
  status_code = response.status.to_i
40
40
  span.set_attribute('http.status_code', status_code)
41
- span.status = OpenTelemetry::Trace::Status.http_to_status(status_code)
41
+ span.status = OpenTelemetry::Trace::Status.error unless (100..399).include?(status_code.to_i)
42
42
  end
43
43
 
44
44
  def tracer
@@ -12,8 +12,8 @@ module OpenTelemetry
12
12
  module Connection
13
13
  def initialize(req, options)
14
14
  attributes = OpenTelemetry::Common::HTTP::ClientContext.attributes.merge(
15
- 'peer.hostname' => req.uri.host,
16
- 'peer.port' => req.uri.port
15
+ 'net.peer.name' => req.uri.host,
16
+ 'net.peer.port' => req.uri.port
17
17
  )
18
18
 
19
19
  tracer.in_span('HTTP CONNECT', attributes: attributes) do
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module HTTP
10
- VERSION = '0.18.0'
10
+ VERSION = '0.19.3'
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-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.3
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-05-21 00:00:00.000000000 Z
11
+ date: 2021-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.0.rc1
19
+ version: '1.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: 1.0.0.rc1
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: opentelemetry-instrumentation-base
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.18.0
33
+ version: 0.19.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.18.0
40
+ version: 0.19.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: appraisal
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 1.0.0.rc1
103
+ version: '1.0'
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.0.rc1
110
+ version: '1.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -228,10 +228,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
228
228
  licenses:
229
229
  - Apache-2.0
230
230
  metadata:
231
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-http/v0.18.0/file.CHANGELOG.html
231
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-http/v0.19.3/file.CHANGELOG.html
232
232
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/http
233
233
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
234
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-http/v0.18.0
234
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-http/v0.19.3
235
235
  post_install_message:
236
236
  rdoc_options: []
237
237
  require_paths: