opentelemetry-instrumentation-ethon 0.5.0 → 0.10.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: afcf2c66d62ca825f3bef40c850e85af0c702a21206e8a906b2d434b880bc9d0
4
- data.tar.gz: c37be5212e1f2c31cc1f740d6938ea2020d71219a0499da68aa70843b171aeb3
3
+ metadata.gz: ddd13d8670782c8987d5e6a1f4cebbf4d5882cb872187aa8bdc508f2852dd200
4
+ data.tar.gz: 912884d62d73526058c52f3f7a6bdc3644bbb84b49f53eae91870397adbed33e
5
5
  SHA512:
6
- metadata.gz: 1191beeb28e0b75a8727e16c4205e894442949e576a3642db5c27c1d82560240f6d8b3ea2c87ee1d4920951fa024fb1017963cce063738e1190bddc21f2ac22b
7
- data.tar.gz: 0fdc3de06e7f59912c8fa26753a69880d927b10a2bdc4953f583b736871eff74ba1b7d646c86a2a4adcddbb95519b2b6e09c2acfc4976ec0e7a291ac667e23ff
6
+ metadata.gz: e5d8b8930a21aaefe8737a16444b982c0e57e9afdbd8a4e6ab39fbcb5600097cbeedce0d53b734a464a7ffcd6e046eac7eef8a73c52b89bdafd7c148baac31bb
7
+ data.tar.gz: 50dcb452419298b215ae5f06e95950c850a41191cefb9224758ec73e5086c64f5f71b1df89a02aea7bef54fe7d40e07cabc8a2693e295b60edd643438470fb18
@@ -0,0 +1,9 @@
1
+ --no-private
2
+ --title=OpenTelemetry Ethon 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
@@ -0,0 +1,28 @@
1
+ # Release History: opentelemetry-instrumentation-ethon
2
+
3
+ ### v0.10.0 / 2020-12-03
4
+
5
+ * (No significant changes)
6
+
7
+ ### v0.9.0 / 2020-11-27
8
+
9
+ * BREAKING CHANGE: Add timeout for force_flush and shutdown
10
+
11
+ * ADDED: Add timeout for force_flush and shutdown
12
+
13
+ ### v0.8.0 / 2020-10-27
14
+
15
+ * BREAKING CHANGE: Move context/span methods to Trace module
16
+ * BREAKING CHANGE: Remove 'canonical' from status codes
17
+
18
+ * FIXED: Move context/span methods to Trace module
19
+ * FIXED: Remove 'canonical' from status codes
20
+
21
+ ### v0.7.0 / 2020-10-07
22
+
23
+ * DOCS: Add README for Ethon
24
+ * DOCS: Standardize toplevel docs structure and readme
25
+
26
+ ### v0.6.0 / 2020-09-10
27
+
28
+ * (No significant changes)
@@ -0,0 +1,54 @@
1
+ # Ethon Instrumentation
2
+
3
+ The ethon instrumentation is a community-maintained instrumentation for the [ethon][ethon-home] HTTP library.
4
+
5
+ ## How do I get started?
6
+
7
+ Install the gem using:
8
+
9
+ ```
10
+ gem install opentelemetry-instrumentation-ethon
11
+ ```
12
+
13
+ Or, if you use [bundler][bundler-home], include `opentelemetry-instrumentation-ethon` to 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::Ethon'
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
+ ## Examples
34
+
35
+ Example usage of faraday can be seen in the `./example/ethon.rb` file [here](https://github.com/open-telemetry/opentelemetry-ruby/blob/master/instrumentation/ethon/example/ethon.rb)
36
+
37
+ ## How can I get involved?
38
+
39
+ The `opentelemetry-instrumentation-ethon` 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
+ The `opentelemetry-instrumentation-all` gem is distributed under the Apache 2.0 license. See [LICENSE][license-github] for more information.
46
+
47
+ [ethon]:https://github.com/typhoeus/ethon
48
+ [ethon-home]:https://github.com/typhoeus/ethon
49
+ [bundler-home]: https://bundler.io
50
+ [repo-github]: https://github.com/open-telemetry/opentelemetry-ruby
51
+ [license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/master/LICENSE
52
+ [ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
53
+ [community-meetings]: https://github.com/open-telemetry/community#community-meetings
54
+ [ruby-gitter]: https://gitter.im/open-telemetry/opentelemetry-ruby
@@ -4,6 +4,12 @@
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
@@ -40,7 +40,7 @@ module OpenTelemetry
40
40
  return_code = response_options[:return_code]
41
41
  message = return_code ? ::Ethon::Curl.easy_strerror(return_code) : 'unknown reason'
42
42
  @otel_span.status = OpenTelemetry::Trace::Status.new(
43
- OpenTelemetry::Trace::Status::UNKNOWN_ERROR,
43
+ OpenTelemetry::Trace::Status::ERROR,
44
44
  description: "Request has failed: #{message}"
45
45
  )
46
46
  else
@@ -78,7 +78,7 @@ module OpenTelemetry
78
78
  )
79
79
 
80
80
  @otel_original_headers ||= {}
81
- tracer.with_span(@otel_span) do
81
+ OpenTelemetry::Trace.with_span(@otel_span) do
82
82
  OpenTelemetry.propagation.http.inject(@otel_original_headers)
83
83
  end
84
84
  self.headers = @otel_original_headers
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Ethon
10
- VERSION = '0.5.0'
10
+ VERSION = '0.10.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-ethon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.10.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-07-17 00:00:00.000000000 Z
11
+ date: 2020-12-03 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.5.0
19
+ version: 0.10.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.5.0
26
+ version: 0.10.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: appraisal
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -157,7 +157,10 @@ executables: []
157
157
  extensions: []
158
158
  extra_rdoc_files: []
159
159
  files:
160
+ - ".yardopts"
161
+ - CHANGELOG.md
160
162
  - LICENSE
163
+ - README.md
161
164
  - lib/opentelemetry-instrumentation-ethon.rb
162
165
  - lib/opentelemetry/instrumentation.rb
163
166
  - lib/opentelemetry/instrumentation/ethon.rb
@@ -168,7 +171,11 @@ files:
168
171
  homepage: https://github.com/open-telemetry/opentelemetry-ruby
169
172
  licenses:
170
173
  - Apache-2.0
171
- metadata: {}
174
+ metadata:
175
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-ethon/v0.10.0/file.CHANGELOG.html
176
+ source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/master/instrumentation/ethon
177
+ bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
178
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-ethon/v0.10.0
172
179
  post_install_message:
173
180
  rdoc_options: []
174
181
  require_paths:
@@ -184,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
191
  - !ruby/object:Gem::Version
185
192
  version: '0'
186
193
  requirements: []
187
- rubygems_version: 3.0.3
194
+ rubygems_version: 3.1.4
188
195
  signing_key:
189
196
  specification_version: 4
190
197
  summary: Ethon instrumentation for the OpenTelemetry framework