opentelemetry-instrumentation-faraday 0.19.3 → 0.20.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: 2cbe0d535d5292d30f1730dc4f121e23c22c41d2f8cfc7c1b810615678f9bcf7
4
- data.tar.gz: 24b26398ff774f23c3ce2f8491e0d2e4379b9f0e8b99f4b25e15c52e7905376f
3
+ metadata.gz: 8aadd6335daf906f7395df2d69282b2d82b4f80bfa74f8a0a6590f08c49feda9
4
+ data.tar.gz: 1cc9b907bd311e17a313914e9ff9bb5e664a2103dd02eca89bae632fb4fa2433
5
5
  SHA512:
6
- metadata.gz: d39420e4f4d441986046d5d29f122582307ea401cf077419832b4f66634051c58798fe6e197ba84a7792a700fd5d6a90af6702dfc26ce4e568469c103d6571bd
7
- data.tar.gz: 845ae1a1d2159865b201a1f9876f2b49ac5108c8b4732ae2b8f491a3b2c379776441b627395e3c63f2c18c6198582ba852dbd19ac8e828e0eba4b820ccdd03bf
6
+ metadata.gz: 3ee811edadda6cab2c975fd64e2f52bd7b45da11b25e71fca4eadbcdae08774f52971f43bb63e041f5c57f948a654cdb7b3ee1a554044fe9a25d9089d45e7e4d
7
+ data.tar.gz: de999da08080143d51f93cfb7b14050a44c1ff768cf50756def59c507ce222d49589c9193f2a26b23935d40b847a7a9db173ea68c4d43745916be9375d95afc2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release History: opentelemetry-instrumentation-faraday
2
2
 
3
+ ### v0.20.0 / 2022-02-02
4
+
5
+ * ADDED: Add net.peer.name to faraday instrumentation
6
+ * FIXED: Excessive hash creation on context attr merging
7
+
3
8
  ### v0.19.3 / 2021-12-02
4
9
 
5
10
  * (No significant changes)
@@ -43,11 +43,13 @@ module OpenTelemetry
43
43
 
44
44
  def span_creation_attributes(http_method:, url:)
45
45
  instrumentation_attrs = {
46
- 'http.method' => http_method, 'http.url' => url.to_s
46
+ 'http.method' => http_method,
47
+ 'http.url' => url.to_s,
48
+ 'net.peer.name' => url.host
47
49
  }
48
50
  config = Faraday::Instrumentation.instance.config
49
51
  instrumentation_attrs['peer.service'] = config[:peer_service] if config[:peer_service]
50
- instrumentation_attrs.merge(
52
+ instrumentation_attrs.merge!(
51
53
  OpenTelemetry::Common::HTTP::ClientContext.attributes
52
54
  )
53
55
  end
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Faraday
10
- VERSION = '0.19.3'
10
+ VERSION = '0.20.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-faraday
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.3
4
+ version: 0.20.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: 2021-12-02 00:00:00.000000000 Z
11
+ date: 2022-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opentelemetry-api
@@ -214,10 +214,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
214
214
  licenses:
215
215
  - Apache-2.0
216
216
  metadata:
217
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-faraday/v0.19.3/file.CHANGELOG.html
217
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-faraday/v0.20.0/file.CHANGELOG.html
218
218
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/faraday
219
219
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
220
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-faraday/v0.19.3
220
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-faraday/v0.20.0
221
221
  post_install_message:
222
222
  rdoc_options: []
223
223
  require_paths: