Rocky_Mountain_Vending/.pnpm-store/v10/files/d3/e20b5263da6d5eb07eafd0489768b149fa49ce985d25f427731a8914908c8b490a6604ef7acbadbab2111cf43ec0dc083a54a2caad1f2073a5ab5bbce42bc3
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

70 lines
1.9 KiB
Text

import { KoaInstrumentation } from '@opentelemetry/instrumentation-koa';
interface KoaOptions {
/**
* Ignore layers of specified types
*/
ignoreLayersType?: Array<'middleware' | 'router'>;
}
export declare const instrumentKoa: ((options: KoaOptions | undefined) => KoaInstrumentation) & {
id: string;
};
/**
* Adds Sentry tracing instrumentation for [Koa](https://koajs.com/).
*
* If you also want to capture errors, you need to call `setupKoaErrorHandler(app)` after you set up your Koa server.
*
* For more information, see the [koa documentation](https://docs.sentry.io/platforms/javascript/guides/koa/).
*
* @param {KoaOptions} options Configuration options for the Koa integration.
*
* @example
* ```javascript
* const Sentry = require('@sentry/node');
*
* Sentry.init({
* integrations: [Sentry.koaIntegration()],
* })
* ```
*
* @example
* ```javascript
* // To ignore middleware spans
* const Sentry = require('@sentry/node');
*
* Sentry.init({
* integrations: [
* Sentry.koaIntegration({
* ignoreLayersType: ['middleware']
* })
* ],
* })
* ```
*/
export declare const koaIntegration: (options?: KoaOptions | undefined) => import("@sentry/core").Integration;
/**
* Add an Koa error handler to capture errors to Sentry.
*
* The error handler must be before any other middleware and after all controllers.
*
* @param app The Express instances
* @param options {ExpressHandlerOptions} Configuration options for the handler
*
* @example
* ```javascript
* const Sentry = require('@sentry/node');
* const Koa = require("koa");
*
* const app = new Koa();
*
* Sentry.setupKoaErrorHandler(app);
*
* // Add your routes, etc.
*
* app.listen(3000);
* ```
*/
export declare const setupKoaErrorHandler: (app: {
use: (arg0: (ctx: any, next: any) => Promise<void>) => void;
}) => void;
export {};
//# sourceMappingURL=koa.d.ts.map