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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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