opentelemetry-instrumentation-net_http 0.7.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/LICENSE +1 -1
- data/lib/opentelemetry-instrumentation-net_http.rb +1 -1
- data/lib/opentelemetry/instrumentation.rb +1 -1
- data/lib/opentelemetry/instrumentation/net/http.rb +2 -1
- data/lib/opentelemetry/instrumentation/net/http/instrumentation.rb +1 -1
- data/lib/opentelemetry/instrumentation/net/http/patches/instrumentation.rb +4 -3
- data/lib/opentelemetry/instrumentation/net/http/version.rb +2 -2
- metadata +23 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51f48c1606f55e38f421954290f801ea5a54c004c48e4fc161674fc9c1b6addc
|
4
|
+
data.tar.gz: d4e94908e0a8ab502c301c00469da15881a1b5138e51353f380c8533fba7885c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8dc8a0158267d0aaa54a23b42a2cb2b537ec45705d7a275cbfab28eb23166211ad4b2280c57ac2a6d34aa230116ef478c6e5492ba6ac2d29bc4396218b468591
|
7
|
+
data.tar.gz: 8947afe8b8e1607431b10da0c0209f7e7cfb183246ddb436824ef6e893af92e1f2b4577f4af419349a27b850c585b76902e404d29df57b969219bdadf10bf53a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-net_http
|
2
2
|
|
3
|
+
### v0.12.0 / 2020-12-24
|
4
|
+
|
5
|
+
* (No significant changes)
|
6
|
+
|
7
|
+
### v0.11.0 / 2020-12-11
|
8
|
+
|
9
|
+
* FIXED: Copyright comments to not reference year
|
10
|
+
|
11
|
+
### v0.10.0 / 2020-12-03
|
12
|
+
|
13
|
+
* (No significant changes)
|
14
|
+
|
15
|
+
### v0.9.0 / 2020-11-27
|
16
|
+
|
17
|
+
* ADDED: Add common helpers
|
18
|
+
|
19
|
+
### v0.8.0 / 2020-10-27
|
20
|
+
|
21
|
+
* BREAKING CHANGE: Remove 'canonical' from status codes
|
22
|
+
|
23
|
+
* FIXED: Remove 'canonical' from status codes
|
24
|
+
|
3
25
|
### v0.7.0 / 2020-10-07
|
4
26
|
|
5
27
|
* DOCS: Added documentation for net_http gem in instrumentation
|
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
|
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.
|
@@ -1,10 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright
|
3
|
+
# Copyright The OpenTelemetry Authors
|
4
4
|
#
|
5
5
|
# SPDX-License-Identifier: Apache-2.0
|
6
6
|
|
7
7
|
require 'opentelemetry'
|
8
|
+
require 'opentelemetry/common'
|
8
9
|
|
9
10
|
module OpenTelemetry
|
10
11
|
module Instrumentation
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright
|
3
|
+
# Copyright The OpenTelemetry Authors
|
4
4
|
#
|
5
5
|
# SPDX-License-Identifier: Apache-2.0
|
6
6
|
|
@@ -18,15 +18,16 @@ module OpenTelemetry
|
|
18
18
|
# Do not trace recursive call for starting the connection
|
19
19
|
return super(req, body, &block) unless started?
|
20
20
|
|
21
|
+
attributes = OpenTelemetry::Common::HTTP::ClientContext.attributes
|
21
22
|
tracer.in_span(
|
22
23
|
HTTP_METHODS_TO_SPAN_NAMES[req.method],
|
23
|
-
attributes:
|
24
|
+
attributes: attributes.merge(
|
24
25
|
'http.method' => req.method,
|
25
26
|
'http.scheme' => USE_SSL_TO_SCHEME[use_ssl?],
|
26
27
|
'http.target' => req.path,
|
27
28
|
'peer.hostname' => @address,
|
28
29
|
'peer.port' => @port
|
29
|
-
|
30
|
+
),
|
30
31
|
kind: :client
|
31
32
|
) do |span|
|
32
33
|
OpenTelemetry.propagation.http.inject(req)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
# Copyright
|
3
|
+
# Copyright The OpenTelemetry Authors
|
4
4
|
#
|
5
5
|
# SPDX-License-Identifier: Apache-2.0
|
6
6
|
|
@@ -8,7 +8,7 @@ module OpenTelemetry
|
|
8
8
|
module Instrumentation
|
9
9
|
module Net
|
10
10
|
module HTTP
|
11
|
-
VERSION = '0.
|
11
|
+
VERSION = '0.12.0'
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentelemetry-instrumentation-net_http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.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
|
+
date: 2020-12-24 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.
|
19
|
+
version: 0.12.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.
|
26
|
+
version: 0.12.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: opentelemetry-common
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.12.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.12.0
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,7 +184,11 @@ files:
|
|
170
184
|
homepage: https://github.com/open-telemetry/opentelemetry-ruby
|
171
185
|
licenses:
|
172
186
|
- Apache-2.0
|
173
|
-
metadata:
|
187
|
+
metadata:
|
188
|
+
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-net_http/v0.12.0/file.CHANGELOG.html
|
189
|
+
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/master/instrumentation/net_http
|
190
|
+
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
|
191
|
+
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-net_http/v0.12.0
|
174
192
|
post_install_message:
|
175
193
|
rdoc_options: []
|
176
194
|
require_paths:
|