Skip to content
Create an account

Bug Tracking

Bug Tracking #

Send the exceptions your code throws to Callisto. Each error app has its own DSN: the SDK posts events to it, events with the same type, message and culprit are grouped into one issue, and you are told by email, SMS or WhatsApp as soon as a new error appears, with a weekly summary.

Configuration

  1. Go to Monitoring → Bug tracking → New application and pick the platform.
  2. Copy the DSN shown on the app page. It looks like https://ingest.callistosignal.com/apps/<app-id>?key=<key>.
  3. Install the SDK for your language and give it the DSN, or send events over plain HTTP.
  4. Throw a test error and check that it appears on the app page.

Report an error

// npm install callisto-sdk
import { ErrorReporter } from "callisto-sdk";

const callisto = new ErrorReporter({
dsn: "https://ingest.callistosignal.com/apps/<app-id>?key=<key>",
environment: "production",
});

try {
// your code
} catch (err) {
callisto.captureException(err, "error", { feature: "checkout" });
throw err;
}
// composer require callisto-php/sdk
use Callisto\Sdk\Callisto;

Callisto::init(
dsn: "https://ingest.callistosignal.com/apps/<app-id>?key=<key>",
environment: "production",
captureUnhandled: true,
);

try {
// your code
} catch (\Throwable $e) {
Callisto::captureException($e, "error", ["feature" => "checkout"]);
throw $e;
}
# pip install callisto-sdk
from callisto_sdk import ErrorReporter

callisto = ErrorReporter(
dsn="https://ingest.callistosignal.com/apps/<app-id>?key=<key>",
environment="production",
)

try:
risky()
except Exception as exc:
callisto.capture_exception(exc, level="error", extra={"feature": "checkout"})
raise
curl -X POST "https://ingest.callistosignal.com/apps/<app-id>?key=<key>" \
-H "Content-Type: application/json" \
-d '{
"level": "error",
"type": "RuntimeException",
"message": "Something broke",
"culprit": "app/Service.php:42",
"context": { "environment": "production" }
}'

There are also SDKs for Go, Ruby, Java and .NET, and ready-made setups for Laravel, Symfony, BowPHP, React, Vue, Angular and NestJS. The app page shows the snippet for the platform you picked.

Event fields over HTTP

Parameter Type Required Description
message string Yes What went wrong. The only required field.
level string No One of fatal, error, warning, info. Anything else is stored as error.
type string No The exception class, such as RuntimeException.
culprit string No Where it happened, as file:line.
stacktrace array No A list of frames with file, line, function. Add pre_context, context_line and post_context to show the code around the line. The SDKs send 10 lines on each side.
context object No Any other details, such as the environment or the release.
user object No The user who hit the error, such as their id and email.
request object No The HTTP request being handled, such as the method and path.

Response

{
"ok": true,
"event_id": "<event-id>"
}

Rejected events

Nothing is recorded when:

  • the key in the DSN is wrong (401);
  • the app is disabled (403);
  • the app does not exist (404);
  • the body is larger than 512 KiB (413);
  • the body is not valid JSON (400);
  • message is missing (422);
  • you send more than 60 events a minute to the same app from the same IP address (429).

Pricing: billed monthly per app. See the pricing.