grafana / xk6-notification

A k6 extension for creating notifications.
Apache License 2.0
19 stars 4 forks source link

Debugging Connection #4

Open Lamera opened 2 years ago

Lamera commented 2 years ago

Hello! Thanks for making this extension for K6. Is there a way to integrate debugging? I added a teams webhook and it says every time 400 Bad request. I would like to see the complete request that is made to teams.

dgzlopes commented 2 years ago

Hey! Thank you for taking the time to write this issue :)

Is there a way to integrate debugging?

I would say that there is a way. It looks like shoutrrr (the notification lib that this extension relays on) has a SetLogger function that we could use to display debug logs :thinking:

We could enable that on-demand on the extension (with an extra argument (debug=true) or a SendDebug).