idea-aws 4.4.12 → 4.4.13
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.
|
@@ -41,7 +41,7 @@ export declare abstract class ResourceController extends GenericController {
|
|
|
41
41
|
constructor(event: APIGatewayProxyEventV2 | APIGatewayProxyEvent, callback: Callback, options?: ResourceControllerOptions);
|
|
42
42
|
private initFromEventV2;
|
|
43
43
|
private initFromEventV1;
|
|
44
|
-
protected getEventSummary(): Record<string, any>;
|
|
44
|
+
protected getEventSummary(limitBodyArrayDisplay?: boolean): Record<string, any>;
|
|
45
45
|
/**
|
|
46
46
|
* Force the parsing of a query parameter as an array of strings.
|
|
47
47
|
*/
|
|
@@ -63,7 +63,7 @@ class ResourceController extends genericController_1.GenericController {
|
|
|
63
63
|
}
|
|
64
64
|
this.tracer.annotateColdStart();
|
|
65
65
|
this.tracer.addServiceNameAnnotation();
|
|
66
|
-
this.tracer.putMetadata('START', { event: this.getEventSummary() });
|
|
66
|
+
this.tracer.putMetadata('START', { event: this.getEventSummary(true) });
|
|
67
67
|
}
|
|
68
68
|
try {
|
|
69
69
|
await this.checkAuthBeforeRequest();
|
|
@@ -204,13 +204,13 @@ class ResourceController extends genericController_1.GenericController {
|
|
|
204
204
|
throw new genericController_1.HandledError('Malformed body');
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
getEventSummary() {
|
|
207
|
+
getEventSummary(limitBodyArrayDisplay = false) {
|
|
208
208
|
return {
|
|
209
209
|
httpMethod: this.httpMethod,
|
|
210
210
|
path: this.path,
|
|
211
211
|
principalId: this.principalId,
|
|
212
212
|
queryParams: this.queryParams,
|
|
213
|
-
body: this.body,
|
|
213
|
+
body: limitBodyArrayDisplay && Array.isArray(this.body) ? { array: this.body.length } : this.body,
|
|
214
214
|
version: this.clientVersion,
|
|
215
215
|
platform: this.clientPlatform,
|
|
216
216
|
bundle: this.clientBundle
|