Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ericselin/appsignal-deno
- Owner: ericselin
- License: lgpl-2.1
- Created: 2022-05-31T09:44:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-05-31T13:44:17.000Z (over 2 years ago)
- Last Synced: 2024-11-28T22:30:10.175Z (2 months ago)
- Language: TypeScript
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.