Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ericselin/appsignal-deno

AppSignal error reporting client for Deno
https://github.com/ericselin/appsignal-deno

Last synced: 15 days ago
JSON representation

AppSignal error reporting client for Deno

Awesome Lists containing this project

README

        

# AppSignal API wrapper

Minimal wrapper to send errors to [AppSignal](https://www.appsignal.com/) public [error reporting API](https://docs.appsignal.com/api/public-endpoint/errors.html).

## Usage

The client does not catch errors in any way, you need to send the errors manually.

```ts
import { createAppsignalClient } from "https://deno.land/x/[email protected]/mod.ts";

// Create client
const sendErrorReport = createAppsignalClient("YOUR_API_KEY", "deno");

// Send an error
try {
throw new Error("Something bad happened");
} catch (err) {
sendErrorReport(err);
}
```

You can specify optional parameters either in the `createAppsignalClient` call or the error sending call - see documentation for `mod.ts` for function definitions.