Files
template-app/apps/web/instrumentation-client.ts

9 lines
470 B
TypeScript

// SPDX-License-Identifier: LicenseRef-ConusAI-Template-1.0
// Runs in the browser before the app hydrates (Next.js 15.3+). All of it is in src/observe/browser.ts,
// where a test can reach it; this file only connects the document to the SDK.
import { instrumentationClient } from "@conusai-sdk/observe-next/instrumentation-client"
import { startBrowserObserve } from "./src/observe/browser"
export const observe = startBrowserObserve(document, instrumentationClient)