依赖项自动收集Dependency auto-collection

下面是当前支持的依赖项调用的列表,系统会自动将其检测为依赖项,不需对应用程序的代码进行额外的修改。Below is the currently supported list of dependency calls that are automatically detected as dependencies without requiring any additional modification to your application's code. 这些依赖项在 Application Insights 的应用程序映射事务诊断视图中可视化。These dependencies are visualized in the Application Insights Application map and Transaction diagnostics views. 如果依赖项不在下面的列表中,仍可通过跟踪依赖项调用手动跟踪它。If your dependency isn't on the list below, you can still track it manually with a track dependency call.

.NET.NET

应用框架App frameworks 版本Versions
ASP.NET WebformsASP.NET Webforms 4.5+4.5+
ASP.NET MVCASP.NET MVC 4+4+
ASP.NET WebAPIASP.NET WebAPI 4.5+4.5+
ASP.NET CoreASP.NET Core 1.1+1.1+
通信库 Communication libraries
HttpClientHttpClient 4.5+、.NET Core 1.1+4.5+, .NET Core 1.1+
SqlClientSqlClient .NET Core 1.0+、NuGet 4.3.0.NET Core 1.0+, NuGet 4.3.0
Microsoft.Data.SqlClientMicrosoft.Data.SqlClient 1.1.0 - 最新稳定版本。1.1.0 - latest stable release. (请参阅下面的说明。)(See Note below.)
EventHubs 客户端 SDKEventHubs Client SDK 1.1.01.1.0
ServiceBus 客户端 SDKServiceBus Client SDK 3.0.03.0.0
存储客户端Storage clients
ADO.NETADO.NET 4.5+4.5+

备注

早期版本的 Microsoft.Data.SqlClient 存在一个已知问题There is a known issue with older versions of Microsoft.Data.SqlClient. 建议使用 1.1.0 或更高版本来缓解此问题。We recommend using 1.1.0 or later to mitigate this issue. Entity Framework Core 不一定随附 Microsoft.Data.SqlClient 的最新稳定版本,因此我们建议你确认所使用的最低版本是 1.1.0 版本以避免此问题。Entity Framework Core does not necessarily ship with the latest stable release of Microsoft.Data.SqlClient so we advise confirming that you are on at least 1.1.0 to avoid this issue.

JavaJava

应用服务器App servers 版本Versions
TomcatTomcat 7, 87, 8
JBoss EAPJBoss EAP 6、76, 7
JettyJetty 99
应用框架App frameworks
SpringSpring 3.03.0
Spring BootSpring Boot 1.5.9+*1.5.9+*
Java ServletJava Servlet 3.1+3.1+
通信库Communication libraries
Apache Http 客户端Apache Http Client 4.3+4.3+
存储客户端Storage clients
SQL ServerSQL Server 1+1+
PostgreSQL(Beta 版本支持)PostgreSQL (Beta Support)
OracleOracle 1+1+
MySqlMySql 1+1+
日志记录库Logging libraries
LogbackLogback 1+1+
Log4jLog4j 1.2+1.2+
指标库Metrics libraries
JMXJMX 1.0+1.0+

备注

*响应式编程支持除外。*Except reactive programing support.
†需安装 JVM 代理†Requires installation of JVM Agent.

Node.jsNode.js

通信库Communication libraries 版本Versions
HTTPHTTPSHTTP, HTTPS 0.10+0.10+
存储客户端Storage clients
RedisRedis 2.x2.x
MongoDbMongoDb CoreMongoDb; MongoDb Core 2.x - 3.x2.x - 3.x
MySQLMySQL 2.0.0 - 2.16.x2.0.0 - 2.16.x
PostgreSqlPostgreSql; 6.x - 7.x6.x - 7.x
pg-poolpg-pool 1.x - 2.x1.x - 2.x
日志记录库Logging libraries
consoleconsole 0.10+0.10+
BunyanBunyan 1.x1.x
WinstonWinston 2.x - 3.x2.x - 3.x

JavascriptJavaScript

通信库Communication libraries 版本Versions
XMLHttpRequestXMLHttpRequest 全部All

后续步骤Next steps