Azure / Azure/azure-sdk-for-java

[FEATURE REQ] Including "uri" in the Diagnostic logs

Open
#26,833 5 comments 0 reactions 2 assignees Claimed by @mbhaskar View on GitHub
Client Cosmos cosmos-java-ecosystem-se-planning cosmos:v4-item
Dominant language
Java
Stars
2.6k
Forks
2.2k
Avg merge
2d 8h
Merged PRs (30d)
178

Description

**Is your feature request related to a problem? Please describe.**
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.

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
return new CosmosClientBuilder()
.endpoint(uri) // whenever this is set, it should add it to the diagnostics ...
.credential(azureKeyCredential)
.directMode(directConnectionConfig, gatewayConnectionConfig);

**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
- [ ] Description Added
- [ ] Expected solution specified

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.