opentelemetry-instrumentation-restclient 0.6.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +9 -0
- data/CHANGELOG.md +24 -0
- data/LICENSE +1 -1
- data/README.md +49 -0
- data/lib/opentelemetry-instrumentation-restclient.rb +1 -1
- data/lib/opentelemetry/instrumentation.rb +7 -1
- data/lib/opentelemetry/instrumentation/restclient.rb +1 -1
- data/lib/opentelemetry/instrumentation/restclient/instrumentation.rb +1 -1
- data/lib/opentelemetry/instrumentation/restclient/patches/request.rb +2 -2
- data/lib/opentelemetry/instrumentation/restclient/version.rb +2 -2
- metadata +12 -6
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: fbcc607de4629e26f337ed802f748bd1280f378061ba553ba1e4ed7d67e2fc6c
         | 
| 4 | 
            +
              data.tar.gz: 39ce03ddba922eafd7cd67c224d34ddf5709d40b28e902e9f94fa9e899b0b3ab
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 236a4e855c181bd8ffce76d6b585cd537983874540e48627ce0ff4e139e180620e0798ac208409a4e79f8afca8163e3cdfdd0f2cd036d8d51eeb2b714c8075c4
         | 
| 7 | 
            +
              data.tar.gz: 3785dfa6da7d2fbb8a098af49a64c641b373d65c362b0a2dec99be33503c24ebb7bf2b15907feda413566b54f3d7c82292719188c77ba6f5c2047a94eb86640f
         | 
    
        data/.yardopts
    ADDED
    
    
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,5 +1,29 @@ | |
| 1 1 | 
             
            # Release History: opentelemetry-instrumentation-restclient
         | 
| 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 | 
            +
            * BREAKING CHANGE: Add timeout for force_flush and shutdown 
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            * ADDED: Add timeout for force_flush and shutdown 
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            ### v0.8.0 / 2020-10-27
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            * BREAKING CHANGE: Move context/span methods to Trace module 
         | 
| 20 | 
            +
             | 
| 21 | 
            +
            * FIXED: Move context/span methods to Trace module 
         | 
| 22 | 
            +
             | 
| 23 | 
            +
            ### v0.7.0 / 2020-10-07
         | 
| 24 | 
            +
             | 
| 25 | 
            +
            * DOCS: Standardize toplevel docs structure and readme 
         | 
| 26 | 
            +
             | 
| 3 27 | 
             
            ### v0.6.0 / 2020-09-10
         | 
| 4 28 |  | 
| 5 29 | 
             
            * (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  | 
| 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
    ADDED
    
    | @@ -0,0 +1,49 @@ | |
| 1 | 
            +
            # OpenTelemetry RestClient Instrumentation
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            The OpenTelemetry RestClient gem is a community maintained instrumentation for the [RestClient][restclient-home] library.
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            ## How do I get started?
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            Install the gem using:
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            ```
         | 
| 10 | 
            +
            gem install opentelemetry-instrumentation-restclient
         | 
| 11 | 
            +
            ```
         | 
| 12 | 
            +
             | 
| 13 | 
            +
            Or, if you use [bundler][bundler-home], include `opentelemetry-instrumentation-restclient` 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::RestClient'
         | 
| 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 | 
            +
            ## How can I get involved?
         | 
| 34 | 
            +
             | 
| 35 | 
            +
            The `opentelemetry-instrumentation-restclient` gem source is [on github][repo-github], along with related gems including `opentelemetry-api` and `opentelemetry-sdk`.
         | 
| 36 | 
            +
             | 
| 37 | 
            +
            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].
         | 
| 38 | 
            +
             | 
| 39 | 
            +
            ## License
         | 
| 40 | 
            +
             | 
| 41 | 
            +
            Apache 2.0 license. See [LICENSE][license-github] for more information.
         | 
| 42 | 
            +
             | 
| 43 | 
            +
            [restclient-home]: https://github.com/rest-client/rest-client
         | 
| 44 | 
            +
            [bundler-home]: https://bundler.io
         | 
| 45 | 
            +
            [repo-github]: https://github.com/open-telemetry/opentelemetry-ruby
         | 
| 46 | 
            +
            [license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/master/LICENSE
         | 
| 47 | 
            +
            [ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
         | 
| 48 | 
            +
            [community-meetings]: https://github.com/open-telemetry/community#community-meetings
         | 
| 49 | 
            +
            [ruby-gitter]: https://gitter.im/open-telemetry/opentelemetry-ruby
         | 
| @@ -1,9 +1,15 @@ | |
| 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 | 
            +
            # 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,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 |  | 
| @@ -29,7 +29,7 @@ module OpenTelemetry | |
| 29 29 | 
             
                          kind: :client
         | 
| 30 30 | 
             
                        )
         | 
| 31 31 |  | 
| 32 | 
            -
                         | 
| 32 | 
            +
                        OpenTelemetry::Trace.with_span(span) do
         | 
| 33 33 | 
             
                          OpenTelemetry.propagation.http.inject(processed_headers)
         | 
| 34 34 | 
             
                        end
         | 
| 35 35 |  | 
| @@ -1,13 +1,13 @@ | |
| 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 | 
             
            module OpenTelemetry
         | 
| 8 8 | 
             
              module Instrumentation
         | 
| 9 9 | 
             
                module RestClient
         | 
| 10 | 
            -
                  VERSION = '0. | 
| 10 | 
            +
                  VERSION = '0.11.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-restclient
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 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- | 
| 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,14 @@ dependencies: | |
| 16 16 | 
             
                requirements:
         | 
| 17 17 | 
             
                - - "~>"
         | 
| 18 18 | 
             
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            -
                    version: 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. | 
| 26 | 
            +
                    version: 0.11.0
         | 
| 27 27 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 28 28 | 
             
              name: appraisal
         | 
| 29 29 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -171,8 +171,10 @@ executables: [] | |
| 171 171 | 
             
            extensions: []
         | 
| 172 172 | 
             
            extra_rdoc_files: []
         | 
| 173 173 | 
             
            files:
         | 
| 174 | 
            +
            - ".yardopts"
         | 
| 174 175 | 
             
            - CHANGELOG.md
         | 
| 175 176 | 
             
            - LICENSE
         | 
| 177 | 
            +
            - README.md
         | 
| 176 178 | 
             
            - lib/opentelemetry-instrumentation-restclient.rb
         | 
| 177 179 | 
             
            - lib/opentelemetry/instrumentation.rb
         | 
| 178 180 | 
             
            - lib/opentelemetry/instrumentation/restclient.rb
         | 
| @@ -182,7 +184,11 @@ files: | |
| 182 184 | 
             
            homepage: https://github.com/open-telemetry/opentelemetry-ruby
         | 
| 183 185 | 
             
            licenses:
         | 
| 184 186 | 
             
            - Apache-2.0
         | 
| 185 | 
            -
            metadata: | 
| 187 | 
            +
            metadata:
         | 
| 188 | 
            +
              changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-restclient/v0.11.0/file.CHANGELOG.html
         | 
| 189 | 
            +
              source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/master/instrumentation/restclient
         | 
| 190 | 
            +
              bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
         | 
| 191 | 
            +
              documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-restclient/v0.11.0
         | 
| 186 192 | 
             
            post_install_message: 
         | 
| 187 193 | 
             
            rdoc_options: []
         | 
| 188 194 | 
             
            require_paths:
         | 
| @@ -198,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 198 204 | 
             
                - !ruby/object:Gem::Version
         | 
| 199 205 | 
             
                  version: '0'
         | 
| 200 206 | 
             
            requirements: []
         | 
| 201 | 
            -
            rubygems_version: 3.1. | 
| 207 | 
            +
            rubygems_version: 3.1.4
         | 
| 202 208 | 
             
            signing_key: 
         | 
| 203 209 | 
             
            specification_version: 4
         | 
| 204 210 | 
             
            summary: REST Client instrumentation for the OpenTelemetry framework
         |