UNPKG

1.38 kBTypeScriptView Raw
1import { Telemetry } from "./telemetry";
2/**
3 * Telemetry about the call to remote component
4 */
5export interface DependencyTelemetry extends Telemetry {
6 /** Identifier of a dependency call instance. Used for correlation with the request telemetry item corresponding to this dependency call. */
7 id?: string;
8 /** Name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template. */
9 name: string;
10 /** Result code of a dependency call. Examples are SQL error code and HTTP status code. */
11 resultCode?: string | number;
12 /** Command initiated by this dependency call. Examples are SQL statement and HTTP URL with all query parameters. */
13 data?: string;
14 /** Dependency type name. Very low cardinality value for logical grouping of dependencies and interpretation of other fields like commandName and resultCode. Examples are SQL, Azure table, and HTTP. */
15 dependencyTypeName?: string;
16 /** Target site of a dependency call. Examples are server name, host address. */
17 target?: string;
18 /** Remote call duration in ms. */
19 duration: number;
20 /** Indication of successful or unsuccessful call. */
21 success?: boolean;
22 /** Collection of custom measurements. */
23 measurements?: {
24 [propertyName: string]: number;
25 };
26}