aws-xray-sdk 0.12.0 → 0.13.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd1eb76edb60040386a2f0742b166868cd136cb758937b270d9387ff00b9284c
4
- data.tar.gz: 26a8ca7ef0a34cccc9542b83c2454d2577760d171118a79a20567dd765b8955c
3
+ metadata.gz: 7519a013ac4db9cf9536638f8abc1d77dc71c4a7edbb5dbc2b43bfc6f1ab3296
4
+ data.tar.gz: 58567280e37b1e041720d7cf1c86f1b55d38e992a2e6f19444950bc491d2ef7a
5
5
  SHA512:
6
- metadata.gz: f6f3c2945fb499e53d5a6b4b4d3ad9467b6ed541934aae2fa1b02a13dd13a7052644985391c809308edc02715067de2103664b3336f39d1819c77c83e0867629
7
- data.tar.gz: a61d068ec3c5536d884f4848712fe48aaa9774b7d89dc2a42475b70fcee5b534b38ac75d532727d98d09c0cc71518f4497449bcd08e71f73c79a876a866b627c
6
+ metadata.gz: 38640d9e8aa2bf1f2328b26670878056713e9e916934ade89ca4ef1132b998f3544b89e01ae3fa7ab619582e2db4487719dd132228c9a51273e7bc27e91cca06
7
+ data.tar.gz: b8d0aa1b3f0bc098cdd32e4f61ab810b4c1beee48aec785481edaf365c74174eda5a136e271b5b37c5aaed8ae6f8a74daeb2191f220d381520fe4ac6352fc03d
@@ -1,7 +1,7 @@
1
1
  require 'aws-sdk-core'
2
2
  require 'aws-xray-sdk/facets/helper'
3
- require 'aws-xray-sdk/facets/resources/aws_params_whitelist'
4
- require 'aws-xray-sdk/facets/resources/aws_services_whitelist'
3
+ require 'aws-xray-sdk/facets/resources/aws_params_allowlist'
4
+ require 'aws-xray-sdk/facets/resources/aws_services_allowlist'
5
5
 
6
6
  module XRay
7
7
  class AwsSDKPlugin < Seahorse::Client::Plugin
@@ -29,9 +29,10 @@ module XRay
29
29
  def xray_sampling_request?(req)
30
30
  req.path && (req.path == ('/GetSamplingRules') || req.path == ('/SamplingTargets'))
31
31
  end
32
-
33
- # Instance Metadata Service provides endpoint 169.254.169.254 to
34
- # provide EC2 metadata
32
+
33
+ # HTTP requests to IMDS endpoint will be made to 169.254.169.254
34
+ # for both IMDSv1 and IMDSv2 with the latter including the
35
+ # X-aws-ec2-metadata-token-ttl-seconds header.
35
36
  def ec2_metadata_request?(req)
36
37
  req.uri && req.uri.hostname == '169.254.169.254'
37
38
  end
@@ -103,6 +103,7 @@ module XRay
103
103
  GuardDuty
104
104
  Health
105
105
  IAM
106
+ IVS
106
107
  Imagebuilder
107
108
  ImportExport
108
109
  Inspector
@@ -135,6 +136,7 @@ module XRay
135
136
  LexRuntimeService
136
137
  LicenseManager
137
138
  Lightsail
139
+ LocationService
138
140
  MachineLearning
139
141
  Macie
140
142
  ManagedBlockchain
@@ -5,12 +5,14 @@ require 'aws-xray-sdk/logger'
5
5
  module XRay
6
6
  module Plugins
7
7
  # A plugin that gets the EC2 instance_id, availabiity_zone, instance_type, and ami_id if running on an EC2 instance.
8
+ # The plugin queries IMDSv2 endpoint with X-aws-ec2-metadata-token-ttl-seconds as 60 seconds, and fallback to using
9
+ # IMDSv1 endpoint.
10
+ # More details about EC2 instance metadata retreival: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-retrieval
8
11
  module EC2
9
12
  include Logging
10
13
 
11
14
  ORIGIN = 'AWS::EC2::Instance'.freeze
12
15
 
13
- # http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-retrieval
14
16
  METADATA_BASE_URL = 'http://169.254.169.254/latest'.freeze
15
17
 
16
18
  def self.aws
@@ -1,3 +1,3 @@
1
1
  module XRay
2
- VERSION = '0.12.0'
2
+ VERSION = '0.13.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-xray-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-09 00:00:00.000000000 Z
11
+ date: 2022-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-xray
@@ -186,8 +186,8 @@ files:
186
186
  - lib/aws-xray-sdk/facets/rails/active_record.rb
187
187
  - lib/aws-xray-sdk/facets/rails/ex_middleware.rb
188
188
  - lib/aws-xray-sdk/facets/rails/railtie.rb
189
- - lib/aws-xray-sdk/facets/resources/aws_params_whitelist.rb
190
- - lib/aws-xray-sdk/facets/resources/aws_services_whitelist.rb
189
+ - lib/aws-xray-sdk/facets/resources/aws_params_allowlist.rb
190
+ - lib/aws-xray-sdk/facets/resources/aws_services_allowlist.rb
191
191
  - lib/aws-xray-sdk/lambda.rb
192
192
  - lib/aws-xray-sdk/lambda/facade_segment.rb
193
193
  - lib/aws-xray-sdk/lambda/lambda_context.rb