Skip to content

Conversation

@gearnode
Copy link
Contributor

@gearnode gearnode commented Oct 23, 2025

Summary by cubic

Adds optional Grafana Faro instrumentation to the Console and Trust apps to collect errors, logs, web vitals, and route telemetry. Initialization runs only when VITE_FARO_URL is set, so local/dev behavior stays the same.

  • New Features

    • Added @grafana/faro-web-sdk and @grafana/faro-react to both apps.
    • Initialized Faro with app name/version from env and enabled console capture + web instrumentations.
    • Wrapped the apps with FaroErrorBoundary to report uncaught errors.
    • Instrumented React Router v6 via withFaroRouterInstrumentation.
    • Added optional Faro env vars to both .env.example files.
  • Migration

    • Set VITE_FARO_URL (and optionally VITE_FARO_APP_NAME, VITE_APP_VERSION) to enable telemetry.
    • If VITE_FARO_URL is not set, Faro is skipped and there’s no runtime change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants