postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.84k stars 839 forks source link

Enhancement: Add error and warning messages to Slack integration #10141

Open VicKetchup opened 3 years ago

VicKetchup commented 3 years ago

Is there an existing request for this feature?

Is your feature request related to a problem?

In order to see the error and warning logs that contain information on the issues we had during the run, you have to go to Monitoring page and scroll through logs to find them.

Describe the solution you'd like

Slack integration should show all the error and warning logs for faster and easier debugging of the issues.

Describe alternatives you've considered

Scrolling and looking through Monitor logs.

Additional context

Severity based filtering on Monitor logs would greatly help with this issue as well (https://github.com/postmanlabs/postman-app-support/issues/6265)

shashankawasthi88 commented 3 years ago

@VicKetchup Thanks for bringing this up. If I understand correctly, you want the logs of the API requests in Slack for any of the Monitors runs that are failing. Do you need the logs only if there is an error or also need them if there is any Test case failure.

Can you help out with the exact workflow that you follow, this will help us design the solution better.

VicKetchup commented 3 years ago

@shashankawasthi88 I just want the logs that were created using console.warn/console.error (including the ones Postman/Monitors create themselves). As by having these logs in the report, if you used them well, there would be no need to go to Monitor page and look through all logs there to figure out what has caused the issue. Hope that makes it clearer.

lgcyril commented 1 month ago

Could we tune/modify the Slack message in the Monitor to display more information we need? Per ex: when a test fails, we want to display the error code and status in Slack but we can't modify the Postman Slack template right now?