1.2.1 • Published 3 years ago

insomnia-plugin-debug-helper v1.2.1

Weekly downloads
133
License
MIT
Repository
github
Last release
3 years ago

Insomnia Debug Helper

Npm Version

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

Kibana:

{
    "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)))"
    }
}

Bugsnag:

{
    "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__"
    }
}

Sentry:

{
    "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.

1.2.1

3 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago