Azure / Azure/azure-sdk-for-java

Diagnostics Improvements - Add readRequestsFallbackenabled flag to Client Side request diagnostics and Client Telemetry

Open
#27,835 4 comments 0 reactions 2 assignees Claimed by @mbhaskar View on GitHub
azure-cosmos-diagnostics-improvements Client Cosmos cosmos-java-ecosystem-se-planning cosmos:v4-item
Dominant language
Java
Stars
2.6k
Forks
2.2k
Avg merge
1d 22h
Merged PRs (30d)
159

Description

Add this flag to Client Side request diagnostics -

```
/**
* Sets whether to allow for reads to go to multiple regions configured on an account of Azure Cosmos DB service.
*


* DEFAULT value is true.
*


* If this property is not set, the default is true for all Consistency Levels other than Bounded Staleness,
* The default is false for Bounded Staleness.
* 1. {@link #endpointDiscoveryEnabled} is true
* 2. the Azure Cosmos DB account has more than one region
*
* @param readRequestsFallbackEnabled flag to enable reads to go to multiple regions configured on an account of
* Azure Cosmos DB service.
* @return current CosmosClientBuilder
*/
public CosmosClientBuilder readRequestsFallbackEnabled(boolean readRequestsFallbackEnabled) {
this.readRequestsFallbackEnabled = readRequestsFallbackEnabled;
return this;
}
```

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.