aws-xray-sdk 0.11.3 → 0.11.4

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
- SHA256:
3
- metadata.gz: cfc85964249b62a758e08922f43b94e994b38b85a0f220177744deb62ed4be1d
4
- data.tar.gz: 301d7594d8e1863335108b6904c05a00806830ce2765d8a1ea099271023af0ae
2
+ SHA1:
3
+ metadata.gz: b5ed0048518918a1d9894a88939b87fde9fdb313
4
+ data.tar.gz: c998bf9b23dc468147c7846b6b50438c1da13b89
5
5
  SHA512:
6
- metadata.gz: a4dbd429616dcb4e9b0372c7f4909894ffb0eba783091a89d36e824138703ea9d67fac332fbde372b2774f268b76060d14f66f1d02416e1517c383a44de7fde3
7
- data.tar.gz: 19b1591a2bd2ef1afddfd676db64701d73a71253a5f6378366440b708b8e46672d485b89050f6bad31052284724ef47bb8f52f7023c6c5aeb99ca646cd844345
6
+ metadata.gz: 942a1296ab40b2e3f5727edf7a685fb40e0254766f3c8b388de1a08cd0e67de361237d788245aff246139c6ce8d3eb8f83b584546dc3a180a9f945a181660f47
7
+ data.tar.gz: 8f3a2c933526caf555116dbb2ea6d9b3f6056a22e42ab82ed2f5add6df82eab3e0b501f4bec02d97353d5e092e9c797dcd8a69b544202d6ea8c35d44dc994377
@@ -20,12 +20,10 @@ module XRay
20
20
  super(*options)
21
21
  end
22
22
 
23
- # HTTP requests to AWS Lambda Ruby Runtime will begin with the
24
- # value set in ENV['AWS_LAMBDA_RUNTIME_API']
25
- def lambda_runtime_request?(req)
26
- ENV['AWS_LAMBDA_RUNTIME_API'] &&
27
- req.uri &&
28
- req.uri.to_s.start_with?('http://'+ENV['AWS_LAMBDA_RUNTIME_API']+'/')
23
+ # HTTP requests to AWS Lambda Ruby Runtime will have the address and port
24
+ # matching the value set in ENV['AWS_LAMBDA_RUNTIME_API']
25
+ def lambda_runtime_request?
26
+ ENV['AWS_LAMBDA_RUNTIME_API'] == "#{address}:#{port}"
29
27
  end
30
28
 
31
29
  def xray_sampling_request?(req)
@@ -34,7 +32,7 @@ module XRay
34
32
 
35
33
  def request(req, body = nil, &block)
36
34
  # Do not trace requests to xray or aws lambda runtime
37
- if xray_sampling_request?(req) || lambda_runtime_request?(req)
35
+ if xray_sampling_request?(req) || lambda_runtime_request?
38
36
  return super
39
37
  end
40
38
 
@@ -52,6 +52,7 @@ module XRay
52
52
  ::ActiveRecord::Base.connection_handler.connection_pool_list.each do |p|
53
53
  conn = p.connections.select { |c| c.object_id == conn_id }
54
54
  pool = p unless conn.nil?
55
+ return [pool, conn] if !conn.nil? && !conn.empty? && !pool.nil?
55
56
  end
56
57
  [pool, conn]
57
58
  end
@@ -7,7 +7,7 @@ module XRay
7
7
  RAILS_OPTIONS = %I[active_record].freeze
8
8
 
9
9
  initializer("aws-xray-sdk.rack_middleware") do |app|
10
- app.middleware.insert 0, Rack::Middleware
10
+ app.middleware.insert 0, XRay::Rack::Middleware
11
11
  app.middleware.use XRay::Rails::ExceptionMiddleware
12
12
  end
13
13
 
@@ -330,6 +330,15 @@ module XRay
330
330
  }
331
331
  }
332
332
  },
333
+ SageMakerRuntime: {
334
+ operations: {
335
+ invoke_endpoint: {
336
+ request_parameters: %I[
337
+ endpoint_name
338
+ ]
339
+ }
340
+ }
341
+ },
333
342
  SNS: {
334
343
  operations: {
335
344
  publish: {
@@ -3,20 +3,32 @@ module XRay
3
3
  module AwsServices
4
4
  # exausted list can be tracked at http://docs.aws.amazon.com/sdk-for-ruby/v3/api/Seahorse/Client/Base.html
5
5
  @whitelist = %I[
6
+ AccessAnalyzer
6
7
  ACM
7
- APIGateway
8
+ ACMPCA
8
9
  AlexaForBusiness
9
- AppStream
10
- AppSync
10
+ Amplify
11
+ APIGateway
12
+ ApiGatewayManagementApi
13
+ ApiGatewayV2
14
+ AppConfig
11
15
  ApplicationAutoScaling
12
16
  ApplicationDiscoveryService
17
+ ApplicationInsights
18
+ AppMesh
19
+ AppStream
20
+ AppSync
13
21
  Athena
22
+ AugmentedAIRuntime
14
23
  AutoScaling
24
+ AutoScalingPlans
25
+ Backup
15
26
  Batch
16
27
  Budgets
28
+ Chime
17
29
  Cloud9
18
30
  CloudDirectory
19
- CloudFormatioin
31
+ CloudFormation
20
32
  CloudFront
21
33
  CloudHSM
22
34
  CloudHSMV2
@@ -29,109 +41,191 @@ module XRay
29
41
  CodeBuild
30
42
  CodeCommit
31
43
  CodeDeploy
44
+ CodeGuruProfiler
45
+ CodeGuruReviewer
32
46
  CodePipeline
33
47
  CodeStar
48
+ CodeStarconnections
49
+ CodeStarNotifications
34
50
  CognitoIdentity
35
51
  CognitoIdentityProvider
36
52
  CognitoSync
37
53
  Comprehend
54
+ ComprehendMedical
55
+ ComputeOptimizer
38
56
  ConfigService
39
- CostExplore
57
+ Connect
58
+ ConnectParticipant
40
59
  CostandUsageReportService
41
- DAX
42
- DataPipeline
60
+ CostExplore
61
+ CostExplorer
43
62
  DatabaseMigrationService
63
+ DataExchange
64
+ DataPipeline
65
+ DataSync
66
+ DAX
67
+ Detective
44
68
  DeviceFarm
45
69
  DirectConnect
46
70
  DirectoryService
71
+ DLM
72
+ DocDB
47
73
  DynamoDB
48
74
  DynamoDBStreams
75
+ EBS
49
76
  EC2
77
+ EC2InstanceConnect
50
78
  ECR
51
79
  ECS
52
80
  EFS
53
- EMR
81
+ EKS
54
82
  ElastiCache
55
83
  ElasticBeanstalk
84
+ ElasticInference
56
85
  ElasticLoadBalancing
57
86
  ElasticLoadBalancingV2
58
- ElasticTranscoder
59
87
  ElasticsearchService
88
+ ElasticTranscoder
89
+ EMR
90
+ EventBridge
60
91
  Firehose
92
+ FMS
93
+ ForecastQueryService
94
+ ForecastService
95
+ FraudDetector
96
+ FSx
61
97
  GameLift
62
98
  Glacier
99
+ GlobalAccelerator
63
100
  Glue
64
101
  Greengrass
102
+ GroundStation
65
103
  GuardDuty
66
104
  Health
67
105
  IAM
106
+ Imagebuilder
68
107
  ImportExport
69
108
  Inspector
70
109
  IoT
110
+ IoT1ClickDevicesService
111
+ IoT1ClickProjects
112
+ IoTAnalytics
71
113
  IoTDataPlane
114
+ IoTEvents
115
+ IoTEventsData
72
116
  IoTJobsDataPlane
73
- KMS
117
+ IoTSecureTunneling
118
+ IoTThingsGraph
119
+ Kafka
120
+ Kendra
74
121
  Kinesis
75
122
  KinesisAnalytics
123
+ KinesisAnalyticsV2
76
124
  KinesisVideo
125
+ KinesisVideoArchivedMedia
77
126
  KinesisVideoArchiveMedia
78
127
  KinesisVideoMedia
128
+ KinesisVideoSignalingChannels
129
+ KMS
130
+ LakeFormation
79
131
  Lambda
80
132
  LambdaPreview
81
133
  Lex
82
134
  LexModelBuildingService
83
135
  LexRuntimeService
136
+ LicenseManager
84
137
  Lightsail
85
- MQ
86
- MTurk
87
138
  MachineLearning
139
+ Macie
140
+ ManagedBlockchain
141
+ MarketplaceCatalog
88
142
  MarketplaceCommerceAnalytics
89
143
  MarketplaceEntitlementService
90
144
  MarketplaceMetering
145
+ MediaConnect
91
146
  MediaConvert
92
147
  MediaLive
93
148
  MediaPackage
149
+ MediaPackageVod
94
150
  MediaStore
95
151
  MediaStoreData
152
+ MediaTailor
96
153
  MigrationHub
154
+ MigrationHubConfig
97
155
  Mobile
156
+ MQ
157
+ MTurk
158
+ Neptune
159
+ NetworkManager
98
160
  OpsWorks
99
161
  OpsWorksCM
100
162
  Organizations
163
+ Outposts
164
+ Personalize
165
+ PersonalizeEvents
166
+ PersonalizeRuntime
167
+ PI
101
168
  Pinpoint
169
+ PinpointEmail
170
+ PinpointSMSVoice
102
171
  Polly
103
172
  Pricing
173
+ QLDB
174
+ QLDBSession
175
+ QuickSight
176
+ RAM
104
177
  RDS
178
+ RDSDataService
105
179
  Redshift
106
180
  Rekognition
107
181
  ResourceGroups
108
182
  ResourceGroupsTaggingAPI
183
+ RoboMaker
109
184
  Route53
110
185
  Route53Domains
186
+ Route53Resolver
111
187
  S3
112
- SES
113
- SFN
114
- SMS
115
- SNS
116
- SQS
117
- SSM
118
- STS
119
- SWF
188
+ S3Control
120
189
  SageMaker
121
190
  SageMakerRuntime
191
+ SavingsPlans
192
+ Schemas
193
+ SecretsManager
194
+ SecurityHub
122
195
  ServerlessApplicationRepository
123
196
  ServiceCatalog
124
197
  ServiceDiscovery
198
+ ServiceQuotas
199
+ SES
200
+ SESV2
201
+ SFN
125
202
  Shield
203
+ Signer
126
204
  SimpleDB
205
+ SMS
127
206
  Snowball
207
+ SNS
208
+ SQS
209
+ SSM
210
+ SSO
211
+ SSOOIDC
128
212
  States
129
213
  StorageGateway
214
+ STS
130
215
  Support
216
+ SWF
217
+ Textract
218
+ TranscribeService
219
+ TranscribeStreamingService
220
+ Transfer
131
221
  Translate
132
222
  WAF
133
223
  WAFRegional
224
+ WAFV2
134
225
  WorkDocs
226
+ WorkLink
227
+ WorkMail
228
+ WorkMailMessageFlow
135
229
  WorkSpaces
136
230
  XRay
137
231
  ]
@@ -1,3 +1,3 @@
1
1
  module XRay
2
- VERSION = '0.11.3'
2
+ VERSION = '0.11.4'
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.11.3
4
+ version: 0.11.4
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: 2019-10-31 00:00:00.000000000 Z
11
+ date: 2020-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-xray
@@ -244,7 +244,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  - !ruby/object:Gem::Version
245
245
  version: '0'
246
246
  requirements: []
247
- rubygems_version: 3.0.3
247
+ rubyforge_project:
248
+ rubygems_version: 2.5.2.3
248
249
  signing_key:
249
250
  specification_version: 4
250
251
  summary: AWS X-Ray SDK for Ruby