All recipes
Nuxt
CodeNitro pluginVue
Initialize the SDK from a Nitro server plugin to measure supported outbound fetch calls. Verify capture with your HTTP client before relying on the measurements.
SDK access required
Node.js and browser packages are not on public npm yet. Contact us for access before following the installation steps. Check the SDK reference for your runtime and review what the SDK sends.
1. Install
Bash
npm install @checkupstream/sdk2. Add the Nitro plugin
server/plugins/checkupstream.ts
import { defineCheckUpstreamPlugin } from "@checkupstream/sdk/integrations/nuxt";
const sdkKey = process.env.CHECKUPSTREAM_SDK_KEY;
if (!sdkKey) throw new Error("Set CHECKUPSTREAM_SDK_KEY before starting the app");
export default defineCheckUpstreamPlugin({
sdkKey,
});Note
Nuxt loads server/plugins/ automatically. The helper starts SDK shutdown on close without awaiting it; explicitly await checkupstream.shutdown() in a controlled shutdown when the final batch must finish.
Continue your setup
Check runtime availability and credentials before deploying an integration.