opentelemetry-instrumentation-aws_sdk 0.2.2 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +1 -2
- data/lib/opentelemetry/instrumentation/aws_sdk/handler.rb +2 -2
- data/lib/opentelemetry/instrumentation/aws_sdk/instrumentation.rb +4 -2
- data/lib/opentelemetry/instrumentation/aws_sdk/messaging_helper.rb +1 -1
- data/lib/opentelemetry/instrumentation/aws_sdk/version.rb +1 -1
- metadata +28 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 850bb9451601140697549b230f1a973ecda38d028cf002da224a6b4878bdcdb7
|
4
|
+
data.tar.gz: 383a89ecdd48abd9ffc58f4dcb623fd56f2601797a2a7934d052b9b690124f1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a59482b651344fa59c1fbb5c42d146dd33164a33775ddadaea3e382313cccfd81918a1435e93a2652161fc4776a02e4ffd819e0a56b201172cdbba4e55bc8c2
|
7
|
+
data.tar.gz: 95a04aaa0530f917ca2ff8df5386b0f8b0070bbf81a176749eca0e325844144c2d4e8300105cb35b1d1ad18192987dbf2a1b0ca2193a3fdcd689173f567c4525
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Release History: opentelemetry-instrumentation-aws_sdk
|
2
2
|
|
3
|
+
### v0.3.1 / 2022-07-19
|
4
|
+
|
5
|
+
* FIXED: Suppress invalid span attribute value type warning in aws-sdk instrumentation
|
6
|
+
|
7
|
+
### v0.3.0 / 2022-06-09
|
8
|
+
|
9
|
+
* Upgrading Base dependency version
|
10
|
+
* FIXED: Broken test file requirements
|
11
|
+
|
12
|
+
### v0.2.3 / 2022-05-02
|
13
|
+
|
14
|
+
* FIXED: RubyGems Fallback
|
15
|
+
|
3
16
|
### v0.2.2 / 2022-01-26
|
4
17
|
|
5
18
|
* (No significant changes)
|
data/README.md
CHANGED
@@ -58,8 +58,7 @@ Apache 2.0 license. See [LICENSE][license-github] for more information.
|
|
58
58
|
[aws-sdk-home]: https://github.com/aws/aws-sdk-ruby
|
59
59
|
[bundler-home]: https://bundler.io
|
60
60
|
[repo-github]: https://github.com/open-telemetry/opentelemetry-ruby
|
61
|
-
[license-github]: https://github.com/open-telemetry/opentelemetry-ruby/blob/main/LICENSE
|
61
|
+
[license-github]: https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/LICENSE
|
62
62
|
[ruby-sig]: https://github.com/open-telemetry/community#ruby-sig
|
63
63
|
[community-meetings]: https://github.com/open-telemetry/community#community-meetings
|
64
64
|
[discussions-url]: https://github.com/open-telemetry/opentelemetry-ruby/discussions
|
65
|
-
|
@@ -14,7 +14,7 @@ module OpenTelemetry
|
|
14
14
|
SQS_RECEIVE_MESSAGE = 'SQS.ReceiveMessage'
|
15
15
|
SNS_PUBLISH = 'SNS.Publish'
|
16
16
|
|
17
|
-
def call(context) # rubocop:disable Metrics/
|
17
|
+
def call(context) # rubocop:disable Metrics/MethodLength, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
|
18
18
|
return super unless context
|
19
19
|
|
20
20
|
service_name = service_name(context)
|
@@ -58,7 +58,7 @@ module OpenTelemetry
|
|
58
58
|
AwsSdk::Instrumentation.instance.config
|
59
59
|
end
|
60
60
|
|
61
|
-
def service_name(context)
|
61
|
+
def service_name(context)
|
62
62
|
# Support aws-sdk v2.0.x, which 'metadata' has a setter method only
|
63
63
|
return context.client.class.to_s.split('::')[1] if ::Seahorse::Model::Api.instance_method(:metadata).parameters.length.positive?
|
64
64
|
|
@@ -9,7 +9,7 @@ module OpenTelemetry
|
|
9
9
|
module AwsSdk
|
10
10
|
# Instrumentation class that detects and installs the AwsSdk instrumentation
|
11
11
|
class Instrumentation < OpenTelemetry::Instrumentation::Base
|
12
|
-
MINIMUM_VERSION = Gem::Version.new('2.0')
|
12
|
+
MINIMUM_VERSION = Gem::Version.new('2.0.0')
|
13
13
|
|
14
14
|
install do |_config|
|
15
15
|
require_dependencies
|
@@ -21,7 +21,7 @@ module OpenTelemetry
|
|
21
21
|
end
|
22
22
|
|
23
23
|
compatible do
|
24
|
-
gem_version >= MINIMUM_VERSION
|
24
|
+
!gem_version.nil? && gem_version >= MINIMUM_VERSION
|
25
25
|
end
|
26
26
|
|
27
27
|
option :inject_messaging_context, default: false, validate: :boolean
|
@@ -32,6 +32,8 @@ module OpenTelemetry
|
|
32
32
|
Gem.loaded_specs['aws-sdk'].version
|
33
33
|
elsif Gem.loaded_specs['aws-sdk-core']
|
34
34
|
Gem.loaded_specs['aws-sdk-core'].version
|
35
|
+
elsif defined?(::Aws::CORE_GEM_VERSION)
|
36
|
+
Gem::Version.new(::Aws::CORE_GEM_VERSION)
|
35
37
|
end
|
36
38
|
end
|
37
39
|
|
@@ -32,7 +32,7 @@ module OpenTelemetry
|
|
32
32
|
attributes[SemanticConventions::Trace::MESSAGING_SYSTEM] = 'aws.sqs'
|
33
33
|
attributes[SemanticConventions::Trace::MESSAGING_DESTINATION_KIND] = 'queue'
|
34
34
|
attributes[SemanticConventions::Trace::MESSAGING_DESTINATION] = queue_name(context)
|
35
|
-
attributes[SemanticConventions::Trace::MESSAGING_URL] = context.params[:queue_url]
|
35
|
+
attributes[SemanticConventions::Trace::MESSAGING_URL] = context.params[:queue_url] if context.params[:queue_url]
|
36
36
|
|
37
37
|
attributes[SemanticConventions::Trace::MESSAGING_OPERATION] = 'receive' if client_method == 'SQS.ReceiveMessage'
|
38
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opentelemetry-instrumentation-aws_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenTelemetry Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opentelemetry-api
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.21.0
|
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.
|
40
|
+
version: 0.21.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: appraisal
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +100,28 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '1.
|
103
|
+
version: '1.1'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: '1.
|
110
|
+
version: '1.1'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: opentelemetry-test-helpers
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: pry
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -156,14 +170,14 @@ dependencies:
|
|
156
170
|
requirements:
|
157
171
|
- - "~>"
|
158
172
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
173
|
+
version: 1.3.0
|
160
174
|
type: :development
|
161
175
|
prerelease: false
|
162
176
|
version_requirements: !ruby/object:Gem::Requirement
|
163
177
|
requirements:
|
164
178
|
- - "~>"
|
165
179
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
180
|
+
version: 1.3.0
|
167
181
|
- !ruby/object:Gem::Dependency
|
168
182
|
name: simplecov
|
169
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -240,14 +254,14 @@ files:
|
|
240
254
|
- lib/opentelemetry/instrumentation/aws_sdk/messaging_helper.rb
|
241
255
|
- lib/opentelemetry/instrumentation/aws_sdk/services.rb
|
242
256
|
- lib/opentelemetry/instrumentation/aws_sdk/version.rb
|
243
|
-
homepage: https://github.com/open-telemetry/opentelemetry-
|
257
|
+
homepage: https://github.com/open-telemetry/opentelemetry-contrib
|
244
258
|
licenses:
|
245
259
|
- Apache-2.0
|
246
260
|
metadata:
|
247
|
-
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-aws_sdk/v0.
|
248
|
-
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby/tree/main/instrumentation/aws_sdk
|
249
|
-
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby/issues
|
250
|
-
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby/opentelemetry-instrumentation-aws_sdk/v0.
|
261
|
+
changelog_uri: https://open-telemetry.github.io/opentelemetry-ruby-contrib/opentelemetry-instrumentation-aws_sdk/v0.3.1/file.CHANGELOG.html
|
262
|
+
source_code_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/tree/main/instrumentation/aws_sdk
|
263
|
+
bug_tracker_uri: https://github.com/open-telemetry/opentelemetry-ruby-contrib/issues
|
264
|
+
documentation_uri: https://open-telemetry.github.io/opentelemetry-ruby-contrib/opentelemetry-instrumentation-aws_sdk/v0.3.1
|
251
265
|
post_install_message:
|
252
266
|
rdoc_options: []
|
253
267
|
require_paths:
|
@@ -256,7 +270,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
256
270
|
requirements:
|
257
271
|
- - ">="
|
258
272
|
- !ruby/object:Gem::Version
|
259
|
-
version: 2.
|
273
|
+
version: 2.6.0
|
260
274
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
261
275
|
requirements:
|
262
276
|
- - ">="
|