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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb2596190bb84ec7b9cf74e564338312c20b2df069c74c6e42fd10c089b73dbf
4
- data.tar.gz: a1b7a11518eb96cfaeb70fbb9d592a2f0378a4c6dd06cf56cc7e2e53abc7df50
3
+ metadata.gz: 850bb9451601140697549b230f1a973ecda38d028cf002da224a6b4878bdcdb7
4
+ data.tar.gz: 383a89ecdd48abd9ffc58f4dcb623fd56f2601797a2a7934d052b9b690124f1f
5
5
  SHA512:
6
- metadata.gz: a64b7c10db92e18b44a34ee5ebe357a9f50da61a4103a673a247d3875f81c3ae4f8232c331cee87aae1fd807aa5714008af4eb9c5ba2072d7cb9fbf5faf39946
7
- data.tar.gz: '091d8ba8eae0d2cfd8003aea77dd547cee65a267ac91021c254519568650204e5ddf4b0de3cf1ff2532f5dbaf4a9d2b40a7660985d5b52a7d3f1fe9f543eb2b2'
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/AbcSize, Metrics/MethodLength, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
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) # rubocop:disable Metrics/AbcSize
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
@@ -7,7 +7,7 @@
7
7
  module OpenTelemetry
8
8
  module Instrumentation
9
9
  module AwsSdk
10
- VERSION = '0.2.2'
10
+ VERSION = '0.3.1'
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-aws_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
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-01-26 00:00:00.000000000 Z
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.19.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.19.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.0'
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.0'
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: 0.73.0
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: 0.73.0
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-ruby
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.2.2/file.CHANGELOG.html
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.2.2
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.5.0
273
+ version: 2.6.0
260
274
  required_rubygems_version: !ruby/object:Gem::Requirement
261
275
  requirements:
262
276
  - - ">="