依赖项遥测:Application Insights 数据模型Dependency telemetry: Application Insights data model

Application Insights 中的依赖项遥测表示受监视组件与远程组件(如 SQL 或 HTTP 终结点)的交互。Dependency Telemetry (in Application Insights) represents an interaction of the monitored component with a remote component such as SQL or an HTTP endpoint.

NameName

通过此依赖项调用启动的命令的名称。Name of the command initiated with this dependency call. 低基数值。Low cardinality value. 示例包括存储过程名称和 URL 路径模板。Examples are stored procedure name and URL path template.

IDID

依赖项调用实例的标识符。Identifier of a dependency call instance. 用于与此依赖项调用所对应的请求遥测项关联。Used for correlation with the request telemetry item corresponding to this dependency call. 有关详细信息,请参阅关联页。For more information, see correlation page.

数据Data

此依赖项调用启动的命令。Command initiated by this dependency call. 示例包括使用所有查询参数的 SQL 语句和 HTTP URL。Examples are SQL statement and HTTP URL with all query parameters.

类型Type

依赖项类型名称。Dependency type name. 低基数值,用于对依赖项进行逻辑分组和解释 commandName 和 resultCode 等其他字段。Low cardinality value for logical grouping of dependencies and interpretation of other fields like commandName and resultCode. 示例包括 SQL、Azure 表和 HTTP。Examples are SQL, Azure table, and HTTP.

目标Target

依赖项调用的目标站点。Target site of a dependency call. 示例包括服务器名称、主机地址。Examples are server name, host address. 有关详细信息,请参阅关联页。For more information, see correlation page.

持续时间Duration

请求持续时间,格式为:DD.HH:MM:SS.MMMMMMRequest duration in format: DD.HH:MM:SS.MMMMMM. 必须小于 1000 天。Must be less than 1000 days.

结果代码Result code

依赖项调用的结果代码。Result code of a dependency call. 示例包括 SQL 错误代码和 HTTP 状态代码。Examples are SQL error code and HTTP status code.

SuccessSuccess

指示调用成功还是失败。Indication of successful or unsuccessful call.

自定义属性Custom properties

自定义属性的名称-值集合。Name-value collection of custom properties. 该集合用于通过自定义维度来扩展标准遥测。This collection is used to extend standard telemetry with the custom dimensions. 示例为部署槽,该槽生成特定于遥测或遥测项的属性,例如订单号。Examples are deployment slot that produced telemetry or telemetry-item specific property like order number.

最大密钥长度:150 最大值长度:8192Max key length: 150 Max value length: 8192

自定义度量值Custom measurements

自定义度量值的集合。Collection of custom measurements. 使用此集合报告与遥测项关联的命名度量值。Use this collection to report named measurement associated with the telemetry item. 典型用例如下:Typical use cases are:

  • 依赖项遥测有效负载的大小the size of Dependency Telemetry payload
  • 由请求遥测处理的队列项数the number of queue items processed by Request Telemetry
  • 客户完成向导步骤完成事件遥测中的步骤所花的时间。time that customer took to complete the step in wizard step completion Event Telemetry.

可以在 Application Analytics 中查询自定义度量值You can query custom measurements in Application Analytics:

customEvents
| where customMeasurements != ""
| summarize avg(todouble(customMeasurements["Completion Time"]) * itemCount)

Note

与所属遥测项关联的自定义度量值。Custom measurements are associated with the telemetry item they belong to. 这些度量值可以通过遥测项(包含这些度量值)采样。They are subject to sampling with the telemetry item containing those measurements. 使用指标遥测跟踪其值独立于其他遥测类型的度量值。To track a measurement that has a value independent from other telemetry types, use Metric telemetry.

最大密钥长度:150Max key length: 150

后续步骤Next steps