We are currently logging an error when an integration job log event fails to publish, but we are not including the error details returned by the system.
Example error/partial stack:
err.message | Request failed with status code 400
err.name | Error
err.stack | Error: Request failed with status code 400
/opt/jupiterone/app/node_modules/@jupiterone/integration-sdk-runtime/dist/src/synchronization/events.js:14:21
level | 50
msg | Failed to publish integration event
Here is an example of where we are doing this in the project:
|
function getSystemErrorResponseData( |