Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
42
Frontend-Learner/node_modules/srvx/dist/tracing.d.mts
generated
vendored
Normal file
42
Frontend-Learner/node_modules/srvx/dist/tracing.d.mts
generated
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
import { _ as ServerRequest, f as Server, g as ServerPlugin, m as ServerMiddleware } from "./_chunks/types.mjs";
|
||||
|
||||
//#region src/tracing.d.ts
|
||||
|
||||
/**
|
||||
* @experimental Channel names, event types and config options may change in future releases.
|
||||
*/
|
||||
type RequestEvent = {
|
||||
server: Server;
|
||||
request: ServerRequest;
|
||||
middleware?: {
|
||||
index: number;
|
||||
handler: ServerMiddleware;
|
||||
};
|
||||
};
|
||||
/**
|
||||
*
|
||||
* @experimental Channel names, event types and config options may change in future releases.
|
||||
*
|
||||
* Tracing plugin that adds diagnostics channel tracing to middleware and fetch handlers.
|
||||
*
|
||||
* This plugin wraps all middleware and the fetch handler with tracing instrumentation,
|
||||
* allowing you to subscribe to `srvx.fetch` and `srvx.middleware` tracing channels.
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* import { serve } from "srvx";
|
||||
* import { tracingPlugin } from "srvx/tracing";
|
||||
*
|
||||
* const server = serve({
|
||||
* fetch: (req) => new Response("OK"),
|
||||
* middleware: [myMiddleware],
|
||||
* plugins: [tracingPlugin()],
|
||||
* });
|
||||
* ```
|
||||
*/
|
||||
declare function tracingPlugin(opts?: {
|
||||
middleware?: boolean;
|
||||
fetch?: boolean;
|
||||
}): ServerPlugin;
|
||||
//#endregion
|
||||
export { RequestEvent, tracingPlugin };
|
||||
Loading…
Add table
Add a link
Reference in a new issue