- Notifications
You must be signed in to change notification settings - Fork 327
Closed
Labels
Milestone
Description
With API Gateway trigger v1 on the lambda instrumentation the following happens, if the instrumented code does not explicitly set the status code on the response object:
- The
statusCodevariable is anIntegerobject on the APIGatewayProxyResponseEvent(used with API Gateway v1 triggers) - this
statusCodeis not initialized properly with the constructor of APIGatewayProxyResponseEvent - thus, if the instrumented code does not set the
statusCodeexplicitly, then the value isnull - the lambda instrumentation then fails with a NPE at this stage