aws-xray-sdk 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-xray-sdk/facets/aws_sdk.rb +2 -2
- data/lib/aws-xray-sdk/facets/net_http.rb +4 -3
- data/lib/aws-xray-sdk/facets/resources/{aws_params_whitelist.rb → aws_params_allowlist.rb} +0 -0
- data/lib/aws-xray-sdk/facets/resources/{aws_services_whitelist.rb → aws_services_allowlist.rb} +2 -0
- data/lib/aws-xray-sdk/plugins/ec2.rb +3 -1
- data/lib/aws-xray-sdk/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7519a013ac4db9cf9536638f8abc1d77dc71c4a7edbb5dbc2b43bfc6f1ab3296
|
4
|
+
data.tar.gz: 58567280e37b1e041720d7cf1c86f1b55d38e992a2e6f19444950bc491d2ef7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
4
|
-
require 'aws-xray-sdk/facets/resources/
|
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
|
-
#
|
34
|
-
#
|
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
|
File without changes
|
data/lib/aws-xray-sdk/facets/resources/{aws_services_whitelist.rb → aws_services_allowlist.rb}
RENAMED
@@ -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
|
data/lib/aws-xray-sdk/version.rb
CHANGED
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.
|
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:
|
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/
|
190
|
-
- lib/aws-xray-sdk/facets/resources/
|
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
|