azure-sdk-for-java icon indicating copy to clipboard operation
azure-sdk-for-java copied to clipboard

[FEATURE REQ]Keep Open Telemetry attributes prefixed with db.comsosdb.* for dependency/span events

Open FabianMeiswinkel opened this issue 1 year ago • 5 comments

Is your feature request related to a problem? Please describe. Currently the applicationInsights-agent (3.4.10) is not adding attributes prefixed with db.cosmosdb.* to the dependency entity - see https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/monitor/azure-monitor-opentelemetry-exporter/src/main/java/com/azure/monitor/opentelemetry/exporter/implementation/SpanDataMapper.java. The .Net AI DependencyCollector is keeping them - which allows customers to see and query them. Is it possible to adjust the behavior in Java as well?

Describe the solution you'd like Like in .Net - https://github.com/microsoft/ApplicationInsights-dotnet/blob/24e5b04e8f8a08de8efd1a973293e65914dd3df5/WEB/Src/DependencyCollector/DependencyCollector/Implementation/AzureSdk/AzureSdkDiagnosticsEventHandler.cs#L378 - keep the attributes prefixed with "db.cosmosdb.*" on the dependency entity in AI.

Describe alternatives you've considered n/a

Additional context n/a

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • [x] Description Added
  • [x] Expected solution specified

FabianMeiswinkel avatar Mar 20 '23 22:03 FabianMeiswinkel