insomnia-plugin-debug-helper
v1.2.1
Published
Insomnia plugin that allows users to open an error tracking service when a request fails
Downloads
944
Maintainers
Readme
Insomnia Debug Helper
This is a simple plugin for Insomnia that allows users to open an error tracking service when a request fails.
Installation
Install the insomnia-plugin-debug-helper
plugin from Preferences > Plugins.
Usage
This plugin uses a Request-ID header in the response to create a link that can be used for error tracing. To configure the header name and URL of the service you need to add an environment variable in Insomnia like this:
{
"DEBUG_HELPER": {
"REQUEST_ID_HEADER": "X-Request-ID",
"DEBUG_URL": "http://my-error-tracking-service/search?id=__REQUEST_ID__"
}
}
Examples
{
"DEBUG_HELPER": {
"REQUEST_ID_HEADER": "X-Request-ID",
"DEBUG_URL": "https://my-kibana-server/_plugin/kibana/app/kibana#/discover?_a=(query:(query_string:(query:%22__REQUEST_ID__%22)))"
}
}
{
"DEBUG_HELPER": {
"REQUEST_ID_HEADER": "X-Request-ID",
"DEBUG_URL": "https://app.bugsnag.com/my-user/my-app/errors?filters[search][0][type]=eq&filters[search][0][value]=__REQUEST_ID__"
}
}
{
"DEBUG_HELPER": {
"REQUEST_ID_HEADER": "X-Transaction-ID",
"DEBUG_URL": "https://sentry.io/organizations/my-user/issues/?project=my-project&query=%22__REQUEST_ID__%22"
}
}
Of course, you need to make sure that your API logs and returns a unique request ID header.