You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When logging error using console, it should log error.
Actual Behavior
Instead of logging actual error, it is causing trace-id issue.
Steps to Reproduce the Problem
Throw the error
and log the error using console
Specifications
Serverless Framework version:
Datadog Serverless Plugin version:
Lambda function runtime (Python 3.7, Node 10, etc.):
Stacktrace
Invoke Error {"errorType":"TypeError","errorMessage":"Cannot read property 'X-Amzn-Trace-Id' of null","stack":["TypeError: Cannot read property 'X-Amzn-Trace-Id' of null"," at /var/task/serverless_sdk/index.js:9:87215"," at /opt/nodejs/node_modules/datadog-lambda-js/utils/handler.js:150:25"," at Object.<anonymous> (/opt/nodejs/node_modules/datadog-lambda-js/index.js:154:62)"," at step (/opt/nodejs/node_modules/datadog-lambda-js/index.js:44:23)"," at Object.next (/opt/nodejs/node_modules/datadog-lambda-js/index.js:25:53)"," at fulfilled (/opt/nodejs/node_modules/datadog-lambda-js/index.js:16:58)"]} ```
The text was updated successfully, but these errors were encountered:
Expected Behavior
When logging error using console, it should log error.
Actual Behavior
Instead of logging actual error, it is causing trace-id issue.
Steps to Reproduce the Problem
Specifications
Stacktrace
The text was updated successfully, but these errors were encountered: