sentry

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 5 Imported by: 0

README

togo

togo-framework/log-sentry

marketplace pkg.go.dev MIT

Part of the togo framework.

Install

togo install togo-framework/log-sentry

togo

log-sentry

part of the togo-framework — the full-stack Go + React framework

Sentry error tracking for togo. Captures every kernel error event (fired by togo.ReportError when a request or background job fails) to Sentry with stack traces, environment and release tagging.

togo install togo-framework/log-sentry

Install alongside togo-framework/log. Blank-importing the plugin registers it.

Env

Var Required Description
SENTRY_DSN yes Your Sentry DSN. When unset the plugin is a no-op.
SENTRY_ENVIRONMENT no e.g. production, staging.
SENTRY_RELEASE no Release identifier for tagging.

How it works

On boot (after the log plugin) it initialises the Sentry SDK and subscribes to the kernel error hook. Errors are sent asynchronously; buffered events are flushed on the shutdown hook.

MIT © togo-framework


Premium sponsors

ID8 Media  ·  One Studio

Support togo — become a sponsor.

Documentation

Overview

Package sentry forwards togo's "error" hook to Sentry (sentry.io). The togo kernel fires the "error" event (via togo.ReportError) whenever a request or job fails; this plugin captures those to Sentry so you get alerting + stack traces. Install alongside togo-framework/log; blank-import registers it.

Env: SENTRY_DSN (required — no-op when empty), SENTRY_ENVIRONMENT, SENTRY_RELEASE.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL