opentelemetry-instrumentation-net_http 0.6.0 → 0.11.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: 4ea314c37dbd44eed6837b25bc23bf16b6d2ceab134852f5fddda05bc81025cf
4
- data.tar.gz: 006612e31ed2dace936055d6dcfb725d8013c0b6d7716afcad668865aec319a4
3
+ metadata.gz: 2f33dee9e05633d6696bc3446b1e325d7f23ef6148b569aba9f16ccd1f9174be
4
+ data.tar.gz: 5105d5fc74a64541a4ab0f696e5674dbf618bf699e64a487d97e063e3ab97788
5
5
  SHA512:
6
- metadata.gz: f96ff54d3b4f4b7abd9bd9b669eda78600e55217da0191970b3227508bc2fc73a0a6819976c2251df7e76beee0c0d3858e5401bb2351f8e302d4aaa9edec4615
7
- data.tar.gz: 2394e719f14312ad2d35b2e330b490feeeb19d6311d6f9716b038c63e23695080286b8d6f63b9b151c86642a5288bfb68d7a6f120cb511ae9deb59b893dae30c
6
+ metadata.gz: 4fe28669be9eab44da19d6436a02e11b13ee004dca030cee92a0413e1ed994ec3df7f012ed117a5d61301a268330659ef90ef2bae76e25bc149aa47febdbbdaf
7
+ data.tar.gz: 3bcc6b1d7a15a670ffa6de53000ee3a6ebf62d89d53cdb87da9778fcbc9010b2d1f6d5a4016060782e83878706c05dadba4619aeca2f0570f5973f5dc01bd577
@@ -0,0 +1,9 @@
1
+ --no-private
2
+ --title=OpenTelemetry Net::HTTP Instrumentation
3
+ --markup=markdown
4
+ --main=README.md
5
+ ./lib/opentelemetry/instrumentation/**/*.rb
6
+ ./lib/opentelemetry/instrumentation.rb
7
+ -
8
+ README.md
9
+ CHANGELOG.md
@@ -1,5 +1,28 @@
1
1
  # Release History: opentelemetry-instrumentation-net_http
2
2
 
3
+ ### v0.11.0 / 2020-12-11
4
+
5
+ * FIXED: Copyright comments to not reference year
6
+
7
+ ### v0.10.0 / 2020-12-03
8
+
9
+ * (No significant changes)
10
+
11
+ ### v0.9.0 / 2020-11-27
12
+
13
+ * ADDED: Add common helpers
14
+
15
+ ### v0.8.0 / 2020-10-27
16
+
17
+ * BREAKING CHANGE: Remove 'canonical' from status codes
18
+
19
+ * FIXED: Remove 'canonical' from status codes
20
+
21
+ ### v0.7.0 / 2020-10-07
22
+
23
+ * DOCS: Added documentation for net_http gem in instrumentation
24
+ * DOCS: Standardize toplevel docs structure and readme
25
+
3
26
  ### v0.6.0 / 2020-09-10
4
27
 
5
28
  * (No significant changes)
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.
@@ -0,0 +1,53 @@
1
+ # OpenTelemetry Net::HTTP Instrumentation
2
+
3
+ The OpenTelemetry Net::HTTP Ruby gem is a community maintained instrumentation for [Net::HTTP][net-http-home].
4
+
5
+ ## How do I get started?
6
+
7
+ Install the gem using:
8
+
9
+ ```
10
+ gem install opentelemetry-instrumentation-net_http
11
+ ```
12
+
13
+ Or, if you use [bundler][bundler-home], include `opentelemetry-instrumentation-net_http` in your `Gemfile`.
14
+
15
+ ## Usage
16
+
17
+ To install the instrumentation, call `use` with the name of the instrumentation.
18
+
19
+ ```ruby
20
+ OpenTelemetry::SDK.configure do |c|
21
+ c.use 'OpenTelemetry::Instrumentation::Net::HTTP'
22
+ end
23
+ ```
24
+
25
+ Alternatively, you can also call `use_all` to install all the available instrumentation.
26
+
27
+ ```ruby
28
+ OpenTelemetry::SDK.configure do |c|
29
+ c.use_all
30
+ end
31
+ ```
32
+
33
+ ## Example
34
+
35
+ An example of usage can be seen in [`example/net_http.rb`](https://github.com/open-telemetry/opentelemetry-ruby/blob/master/instrumentation/net_http/example/net_http.rb).
36
+
37
+ ## How can I get involved?
38
+
39
+ The `opentelemetry-instrumentation-net_http` gem source is [on github][repo-github], along with related gems including `opentelemetry-api` and `opentelemetry-sdk`.
40
+
41
+ The OpenTelemetry Ruby gems are maintained by the OpenTelemetry-Ruby special interest group (SIG). You can get involved by joining us on our [gitter channel][ruby-gitter] or attending our weekly meeting. See the [meeting calendar][community-meetings] for dates and times. For more information on this and other language SIGs, see the OpenTelemetry [community page][ruby-sig].
42
+
43
+ ## License
44
+
45
+ Apache 2.0 license. See [LICENSE][license-github] for more information.
46
+
47
+ [net-http-home]: https://docs.ruby-lang.org/en/2.0.0/Net/HTTP.html
48
+ [bundler-home]: https://bundler.io
49
+ [repo-github]: https://github.com/open-telemetry/opentelemetry-ruby
50
+ [license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/master/LICENSE
51
+ [ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
52
+ [community-meetings]: https://github.com/open-telemetry/community#community-meetings
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,9 +1,15 @@
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
+ # OpenTelemetry is an open source observability framework, providing a
8
+ # general-purpose API, SDK, and related tools required for the instrumentation
9
+ # of cloud-native software, frameworks, and libraries.
10
+ #
11
+ # The OpenTelemetry module provides global accessors for telemetry objects.
12
+ # See the documentation for the `opentelemetry-api` gem for details.
7
13
  module OpenTelemetry
8
14
  # "Instrumentation" are specified by
9
15
  # https://github.com/open-telemetry/opentelemetry-specification/blob/784635d01d8690c8f5fcd1f55bdbc8a13cf2f4f2/specification/glossary.md#instrumentation-library
@@ -1,10 +1,11 @@
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
  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 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
 
@@ -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 2020 OpenTelemetry Authors
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.6.0'
11
+ VERSION = '0.11.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.6.0
4
+ version: 0.11.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-09-11 00:00:00.000000000 Z
11
+ date: 2020-12-11 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.6.0
19
+ version: 0.11.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.6.0
26
+ version: 0.11.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.11.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.11.0
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -157,8 +171,10 @@ executables: []
157
171
  extensions: []
158
172
  extra_rdoc_files: []
159
173
  files:
174
+ - ".yardopts"
160
175
  - CHANGELOG.md
161
176
  - LICENSE
177
+ - README.md
162
178
  - lib/opentelemetry-instrumentation-net_http.rb
163
179
  - lib/opentelemetry/instrumentation.rb
164
180
  - lib/opentelemetry/instrumentation/net/http.rb
@@ -168,7 +184,11 @@ files:
168
184
  homepage: https://github.com/open-telemetry/opentelemetry-ruby
169
185
  licenses:
170
186
  - Apache-2.0
171
- metadata: {}
187
+ metadata:
188
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-net_http/v0.11.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.11.0
172
192
  post_install_message:
173
193
  rdoc_options: []
174
194
  require_paths:
@@ -184,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
204
  - !ruby/object:Gem::Version
185
205
  version: '0'
186
206
  requirements: []
187
- rubygems_version: 3.1.2
207
+ rubygems_version: 3.1.4
188
208
  signing_key:
189
209
  specification_version: 4
190
210
  summary: Net::HTTP instrumentation for the OpenTelemetry framework