flarereport

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package flarereport wires the pro entry points (mesh-hub) to the house Flare instance. It is the ONLY package in this module allowed to import sentry-go: the AGPL open core (the mesh CLI and pkg/) must never link error reporting, so keep this import isolated here and never import flarereport from open-core packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureErr

func CaptureErr(err error)

CaptureErr reports a non-panic error to Flare. No-op when reporting is disabled. Use for errors that are handled but should page someone.

func CapturePanic

func CapturePanic(r *http.Request, rec any)

CapturePanic reports a recovered panic to Flare with request context. The hub has its own panic-recovery middleware that renders the 500, so this is called from inside its recover block and does not re-panic. Safe when InitFlare was a no-op: capture calls on an uninitialized hub do nothing.

func InitFlare

func InitFlare(service, release string) bool

InitFlare wires error reporting to the house Flare instance (Sentry-wire protocol) when FLARE_DSN is set in the environment. The DSN is injected by the Hephaestus flare-provision deploy step; without it this is a no-op so dev runs and self-hosts boot unchanged.

Types

This section is empty.

Jump to

Keyboard shortcuts

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