-
Notifications
You must be signed in to change notification settings - Fork 208
Closed
Closed
Copy link
Description
After Java SDK version upgrading, we observed the ApplicationInsights-Java agent always capture InProc span dependencies (from CosmosDB SDK, Azure KeyVault SDK, ...) and send to Application Insights which caused the cost increasing.
Azure SDK version details:
- ApplicationInsights-Java agent: applicationinsights-agent-3.4.17.jar
- azure-cosmos: 4.56.0
- azure-security-keyvault-secrets: 4.8.0
- azure-messaging-servicebus: 7.15.1
As of now, we are using sampling rule to capture cosmos HTTP dependency and this is working fine but not work for InProc dependency.
{ "telemetryType": "dependency", "attributes": [ { "key": "http.url", "value": "https?://[^/]+.documents.azure.com/.*", "matchType": "regexp" } ], "percentage": 10 }
The ApplicationInsights-Java agent should ignore to capture InProc dependency as the HTTP dependency (which has more helpful information) is captured.
simplyanything