Azure / azure-cosmosdb-java

Java Async SDK for SQL API of Azure Cosmos DB
MIT License
54 stars 61 forks source link

Including "uri" in the Diagnostic logs #401

Open philipthomas-MSFT opened 2 years ago

philipthomas-MSFT commented 2 years ago

Based on a recent incident, we wanted to know how feasible it would be to include the container that they are trying to access in the diagnostic logs. User is setting "endpoint" but receiving and error "Server could not parse the Url" but since we are not able to see what that actual value is, we want to include it in the diagnostics.

Reference:

return new CosmosClientBuilder() .endpoint(uri) .credential(azureKeyCredential) .directMode(directConnectionConfig, gatewayConnectionConfig);