Skip to content

apps/api/src/lib/telemetry.ts ​

Auto-generated by scripts/generate-file-docs.ts. Do not edit — overwritten on every run.

Purpose ​

Azure Application Insights instrumentation (AB#3127). Import and call initTelemetry() at the very top of src/index.ts before any other module so the SDK can intercept HTTP and DB dependencies. When APPLICATIONINSIGHTS_CONNECTION_STRING is absent (local dev) this is a silent no-op.

Exports ​

  • export function initTelemetry
  • export function trackException

Imports ​

(none detected)

Imported by ​

Heritage Community Hub — Internal. Access restricted via Cloudflare Access + Entra ID.