http_instrumentation 1.0.2 → 1.0.3
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/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/http_instrumentation.gemspec +0 -2
- data/lib/http_instrumentation/instrumentation/excon_hook.rb +5 -3
- metadata +1 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8c62a0d7cd2f490aab2e2dfda4ca18b6cfe794cc013e65862b1e5e0984a121e7
|
|
4
|
+
data.tar.gz: be98556c0d7c90633278f6eae1688a0b9e07ddf5ad0065122ef7aefc6b36adb2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7239288a4d4ec3ab8545d0bacc37c47cd3eeb7be7786c1434bcc1fca2f7bb717597fd13319573a107acf0be8bf5cce79c2caa89ba1b30ec7a560efcc05fae05b
|
|
7
|
+
data.tar.gz: 2b2020627f1ea45b8707827115f18337fa5fb42b11e673ff4078bd96241a8f495f9dba70fa38a7c21911d2692b05d19692ddd8042bc685d547caf549f64acbad
|
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## 1.0.3
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- The excon instrumentation now reads the connection defaults from `Excon::Connection#data` instead of the deprecated `#connection` alias, so building the event payload no longer emits a deprecation warning on current versions of the gem. The `#connection` accessor is still used as a fallback for older versions.
|
|
11
|
+
|
|
7
12
|
## 1.0.2
|
|
8
13
|
|
|
9
14
|
### Fixed
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.3
|
|
@@ -33,10 +33,12 @@ module HTTPInstrumentation
|
|
|
33
33
|
info = params
|
|
34
34
|
# Merge connection defaults under the per-request params so the
|
|
35
35
|
# request values win.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
# #data is the current accessor; #connection is a deprecated alias
|
|
37
|
+
# kept only for older versions of the gem.
|
|
38
|
+
if respond_to?(:data)
|
|
39
39
|
info = data.merge(params)
|
|
40
|
+
elsif respond_to?(:connection)
|
|
41
|
+
info = connection.merge(params)
|
|
40
42
|
end
|
|
41
43
|
|
|
42
44
|
scheme = info[:scheme]&.downcase
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: http_instrumentation
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brian Durand
|
|
@@ -23,20 +23,6 @@ dependencies:
|
|
|
23
23
|
- - ">="
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
25
|
version: '4.2'
|
|
26
|
-
- !ruby/object:Gem::Dependency
|
|
27
|
-
name: bundler
|
|
28
|
-
requirement: !ruby/object:Gem::Requirement
|
|
29
|
-
requirements:
|
|
30
|
-
- - ">="
|
|
31
|
-
- !ruby/object:Gem::Version
|
|
32
|
-
version: '0'
|
|
33
|
-
type: :development
|
|
34
|
-
prerelease: false
|
|
35
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
-
requirements:
|
|
37
|
-
- - ">="
|
|
38
|
-
- !ruby/object:Gem::Version
|
|
39
|
-
version: '0'
|
|
40
26
|
email:
|
|
41
27
|
- bbdurand@gmail.com
|
|
42
28
|
executables: []
|