Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database and Collection names are not displayed correctly for CosmosDB SDK 3.43 #2903

Open
piotr-rojek opened this issue Oct 4, 2024 · 0 comments
Labels

Comments

@piotr-rojek
Copy link

  • Microsoft.Azure.Cosmos 3.43.1
  • Microsoft.ApplicationInsights 2.22.0
  • NET 8
  • Azure Web App

Describe the bug

After changes to Azure/azure-cosmos-dotnet-v3 OpenTelemetryAttributeKeys.cs done in Azure/azure-cosmos-dotnet-v3#4622, the code in microsoft/ApplicationInsights-dotnet AzureSdkDiagnosticsEventHandler.cs cannot find database and collection names anymore.

image

To Reproduce

  • Create .net console app from a template;
  • enable application insights;
  • enable cosmosdb + CosmosClientOptions.DisableDistributedTracing = false

We will close this issue if:

  • AzureSdkDiagnosticsEventHandler.SetCosmosDbProperties() supports both the old and the new (OTEL compatible) property names
@piotr-rojek piotr-rojek added the bug label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant