Deno
Last updated
Was this helpful?
Last updated
Was this helpful?
Adding BugSplat error reporting to your application, web worker, or serverless function only takes a few lines of code. Once integrated, BugSplat will capture stack traces, logs, and other valuable insight when your code encounters a problem. BugSplat's package is fully typed and easily imported via .
Add an import from via :
Create a new instance of the BugSplat
class with the name of your BugSplat database, the name of your application, and the version of your application:
Use the bugsplat
instance to capture errors that originate inside of try-catch blocks:
Use bugsplat
to post errors from promise rejections:
You can also attach a file to your error post by passing a BugSplatOptions
object containing with a value for additionalFormDataParams
property.
Set your current directory to my-deno-crasher
.
Run the sample with the --allow-net
and --allow-read
flags to allow BugSplat to post an error to our backend and read the log file respectively.
Thatโs it! Your application is now configured to post error reports to BugSplat.
In addition to the configuration demonstrated above, there are a few public methods that can be used to customize your BugSplat integration:
Clone the repository:
After posting an error, navigate to the page. You should see a new crash report for the application you just configured. Click the link in the ID column to see details about your crash on the page:
BugSplat loves open-source software! Please check out our project on and send us a Pull Request.