0.0.4 • Published 2 years ago
@openstatus/next-monitoring v0.0.4
OpenStatus Real User Monitoring for NextJS
Start monitoring the performance your NextJS application with OpenStatus Real User Monitoring.
Usage
To use OpenStatus Real User Monitoring in your NextJS application, you need to install the package first:
pnpm add @openstatus/next-monitoringThen, you need to add in your application the OpenStatusProvider component. You can do this in your custom layout.tsx file or in a custom layout component
import { OpenStatusProvider } from "@openstatus/next-monitoring";
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className={inter.className}>
<OpenStatusProvider dsn="YOUR_DSN" />
{children}
</body>
</html>
);
}