Christy Jacob

Logging with Raygun

Raygun is an application performance monitoring (APM) and error tracking tool designed for software developers to identify and resolve issues in their applications quickly. It provides real-time insights into software performance, error diagnostics, and user experience, helping teams to detect, diagnose, and fix errors faster. With features like crash reporting, real user monitoring, and deployment tracking, Raygun helps ensure the stability and efficiency of applications, making it an essential tool for maintaining high-quality software and delivering a seamless user experience.

How does the integration work?

If you are using self-hosting Appwrite, you can use the Raygun provider for error-tracking and logging for your Appwrite instance.

How to implement

To implement the Raygun provider for logging, there are several steps you must complete:

Step 1: Sign up for Raygun

First, sign up on Raygun (pick Crash Reporting as the product you’re most interested in) and create your first application. Head to Application settings from the left-side navbar and copy your API Key.

API key

Step 2: Add Raygun provider to your Appwrite instance

For this step, you must self-host Appwrite if you haven’t already.

Visit the .env file created for your Appwrite instance and update the following environment variables:

Bash
_APP_LOGGING_PROVIDER=raygun
_APP_LOGGING_CONFIG=RAYGUN_API_KEY

After that, run the following Docker Compose commands in your terminal to restart your Appwrite containers and verify if the changes have been successfully applied:

Bash
docker compose up -d --force-recreate
docker compose exec appwrite vars

Step 3: Test the provider

Once the Sentry provider is configured, run the following command in your terminal:

Bash
docker compose exec appwrite ssl --domain="wrongdomain.com"

Doing so will show errors in your Raygun Crash Reporting dashboard.

Raygun Crash Reporting

You can also view the error summary for further details.

Error

Read more about Raygun and Appwrite

If you would like to learn more about Raygun and Appwrite, we have some resources that you should visit:

Become a Technology Partner

Join our Technology Partners program to integrate your solutions with Appwrite’s API, enhancing functionality and expanding your reach.

Get Started