@vtex/diagnostics-nodejs
Version:
Diagnostics library for Node.js applications
20 lines • 827 B
TypeScript
import { createFastifyContextPlugin } from './fastify';
import { ensureContextPropagation } from './core';
export declare const ContextMiddlewares: {
Express: {
ContextPropagationMiddleware: () => (req: import("express").Request, res: import("express").Response, next: import("express").NextFunction) => void;
};
Koa: {
ContextPropagationMiddleware: () => (ctx: import("koa").Context, next: import("koa").Next) => Promise<void>;
};
Fastify: {
ContextPlugin: (fastify: {
addHook(name: string, hook: Function): void;
}, opts: {}, done: (error?: Error) => void) => void;
createContextPlugin: typeof createFastifyContextPlugin;
};
Core: {
ensureContextPropagation: typeof ensureContextPropagation;
};
};
//# sourceMappingURL=index.d.ts.map