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 availability
@checkupstream/sdk 0.1.0 is on npm and records requests made with fetch. The browser package is not published; contact us for access. 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.