opentelemetry-instrumentation-ethon 0.19.0 → 0.19.4

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: 7d69890b3631dcb3e9d1fd434de81a05a3fcc83ad3bcf370254279c224fb7e09
4
- data.tar.gz: 387e28351ee89b545cc99289d7cc32f00723f9eeac4b296617b4b07b3df7a71c
3
+ metadata.gz: 42ebde52ac2f3246f21028d374de722ca77296fb36c226b57a26db4f7da607ee
4
+ data.tar.gz: 20c42dd94edfdce429647ef1ec80a03336909c4ad422ee719c4bdccb8c3d2b94
5
5
  SHA512:
6
- metadata.gz: bcebc00a0726fa963f87be56b7ac3df57dd660cf40368cd4571f790b66ca83abb6a6f26431cac3896085ed2a924247fd54fa41f12fb56addc8300827af7b6804
7
- data.tar.gz: d9db8f03b1207dbe5b679725f904a2b87073cd0f5a43ca9dc7489e5cc5c9ff79a7db241eec857bd7f3105edce6ffadbebd2834f0b331c92a0a1541093a488f5a
6
+ metadata.gz: 17663f66b7023592c72fd24ed251e567044d402932802736a576b84209e41d9667cb63af3a09e37b12689a6d3a96e4ce5e3e2afdd1b8a360952805ddd60df1db
7
+ data.tar.gz: 77124a20fb3c42082a6710e36f3e850318292bad8f942f5715f194754698480ac1c8c7e3c6a1dae9cf93ea4ae11d64910dda0fdfc0519a9457b79c94c7f63f56
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release History: opentelemetry-instrumentation-ethon
2
2
 
3
+ ### v0.19.4 / 2022-02-02
4
+
5
+ * FIXED: Excessive hash creation on context attr merging
6
+
7
+ ### v0.19.3 / 2021-12-02
8
+
9
+ * (No significant changes)
10
+
11
+ ### v0.19.2 / 2021-09-29
12
+
13
+ * (No significant changes)
14
+
15
+ ### v0.19.1 / 2021-08-12
16
+
17
+ * DOCS: Update docs to rely more on environment variable configuration
18
+
3
19
  ### v0.19.0 / 2021-06-23
4
20
 
5
21
  * BREAKING CHANGE: Total order constraint on span.status=
@@ -45,7 +45,7 @@ module OpenTelemetry
45
45
  @otel_span.status = OpenTelemetry::Trace::Status.error unless (100..399).include?(response_code.to_i)
46
46
  end
47
47
  ensure
48
- @otel_span.finish
48
+ @otel_span&.finish
49
49
  @otel_span = nil
50
50
  end
51
51
  super
@@ -89,7 +89,7 @@ module OpenTelemetry
89
89
  }
90
90
  config = Ethon::Instrumentation.instance.config
91
91
  instrumentation_attrs['peer.service'] = config[:peer_service] if config[:peer_service]
92
- instrumentation_attrs.merge(
92
+ instrumentation_attrs.merge!(
93
93
  OpenTelemetry::Common::HTTP::ClientContext.attributes
94
94
  )
95
95
  end
@@ -17,6 +17,12 @@ module OpenTelemetry
17
17
 
18
18
  super
19
19
  end
20
+
21
+ def add(easy)
22
+ easy.otel_before_request unless easy.otel_span_started?
23
+
24
+ super
25
+ end
20
26
  end
21
27
  end
22
28
  end
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module Ethon
10
- VERSION = '0.19.0'
10
+ VERSION = '0.19.4'
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.19.0
4
+ version: 0.19.4
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-06-24 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
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.0.rc2
19
+ version: '1.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: 1.0.0.rc2
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: opentelemetry-common
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.19.0
33
+ version: 0.19.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.19.0
40
+ version: 0.19.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: opentelemetry-instrumentation-base
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.18.1
47
+ version: 0.19.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.18.1
54
+ version: 0.19.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: appraisal
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.0.0.rc1
117
+ version: '1.0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.0.0.rc1
124
+ version: '1.0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rubocop
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -200,10 +200,10 @@ homepage: https://github.com/open-telemetry/opentelemetry-ruby
200
200
  licenses:
201
201
  - Apache-2.0
202
202
  metadata:
203
- changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-ethon/v0.19.0/file.CHANGELOG.html
203
+ changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-ethon/v0.19.4/file.CHANGELOG.html
204
204
  source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/ethon
205
205
  bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
206
- documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-ethon/v0.19.0
206
+ documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-ethon/v0.19.4
207
207
  post_install_message:
208
208
  rdoc_options: []
209
209
  require_paths: