Skip to content

ApplicationInsights-Java agent should ignore to capture InProc span dependenciesΒ #3906

@n0n0213

Description

@n0n0213

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions