UNPKG

650 BTypeScriptView Raw
1/// <reference types="node" />
2import { Telemetry } from "./telemetry";
3import * as http from "http";
4/**
5 * Object encapsulating information about the incoming HTTP request
6 */
7export interface NodeHttpRequestTelemetry extends Telemetry {
8 /**
9 * HTTP request object
10 */
11 request: http.IncomingMessage;
12 /**
13 * HTTP response object
14 */
15 response: http.ServerResponse;
16 /**
17 * HTTP request duration. Used only for synchronous tracks.
18 */
19 duration?: number;
20 /**
21 * Error that occurred while processing the request. Used only for synchronous tracks.
22 */
23 error?: any;
24}