-
Notifications
You must be signed in to change notification settings - Fork 523
Description
In a .NET Framework 4.8 WebForm project.
Hosted in a Windows Azure App Service app.
Microsoft.ApplicationInsights and Microsoft.ApplicationInsights.DependencyCollector 2.22.0
Microsoft.Azure.Cosmos 3.38.1
I'm using Cosmos DB SDK with the default Direct mode.
I'm trying to track as dependencies all calls made to Cosmos DB (read, write, replace, ...).
It seems that only some calls are tracked such as "GET /dbs//colls//pkranges" or "Get collection" (the ones using HTTP(s) even when using Direct mode?)
According to microsoft/ApplicationInsights-dotnet#2635, AppInsights SDK v2.22 should be used and according to https://learn.microsoft.com/en-us/azure/azure-monitor/app/asp-net-dependencies CosmosDB SDK v3.33.0-preview minimum should be used to automatically track TCP calls as well.
Is there something else to do to make it work?
Should I do something in the ApplicationInsights.config file to add CosmosDB the same way Microsoft.Azure.EventHubs or Azure.Messaging.ServiceBus are listed (documented at https://learn.microsoft.com/en-us/azure/azure-monitor/app/asp-net)?
cc @sourabh1007 as this seems to be one of his area of expertise.
Thanks a lot