@@ -214,12 +214,12 @@ The following code samples show how to define diagnostics thresholds, custom dia
214
214
``` Java
215
215
// Create diagnostics threshold
216
216
CosmosDiagnosticsThresholds cosmosDiagnosticsThresholds = new CosmosDiagnosticsThresholds ();
217
- // For demo purposes, we will reduce the threshold so to log all diagnostics
217
+ // These thresholds are for demo purposes
218
218
// NOTE: Do not use the same thresholds for production
219
- cosmosDiagnosticsThresholds. setPayloadSizeThreshold(10 );
220
- cosmosDiagnosticsThresholds. setPointOperationLatencyThreshold(Duration . ofMillis( 10 ));
221
- cosmosDiagnosticsThresholds. setNonPointOperationLatencyThreshold(Duration . ofMillis( 10 ));
222
- cosmosDiagnosticsThresholds. setRequestChargeThreshold(5f );
219
+ cosmosDiagnosticsThresholds. setPayloadSizeThreshold(100_00 );
220
+ cosmosDiagnosticsThresholds. setPointOperationLatencyThreshold(Duration . ofSeconds( 1 ));
221
+ cosmosDiagnosticsThresholds. setNonPointOperationLatencyThreshold(Duration . ofSeconds( 5 ));
222
+ cosmosDiagnosticsThresholds. setRequestChargeThreshold(100f );
223
223
```
224
224
225
225
#### Defining custom Diagnostics Handler
@@ -258,12 +258,12 @@ CosmosClient client = new CosmosClientBuilder()
258
258
``` Java
259
259
// Create diagnostics threshold
260
260
CosmosDiagnosticsThresholds cosmosDiagnosticsThresholds = new CosmosDiagnosticsThresholds ();
261
- // For demo purposes, we will reduce the threshold so to log all diagnostics
261
+ // These thresholds are for demo purposes
262
262
// NOTE: Do not use the same thresholds for production
263
- cosmosDiagnosticsThresholds. setPayloadSizeThreshold(10 );
264
- cosmosDiagnosticsThresholds. setPointOperationLatencyThreshold(Duration . ofMillis( 10 ));
265
- cosmosDiagnosticsThresholds. setNonPointOperationLatencyThreshold(Duration . ofMillis( 10 ));
266
- cosmosDiagnosticsThresholds. setRequestChargeThreshold(5f );
263
+ cosmosDiagnosticsThresholds. setPayloadSizeThreshold(100_00 );
264
+ cosmosDiagnosticsThresholds. setPointOperationLatencyThreshold(Duration . ofSeconds( 1 ));
265
+ cosmosDiagnosticsThresholds. setNonPointOperationLatencyThreshold(Duration . ofSeconds( 5 ));
266
+ cosmosDiagnosticsThresholds. setRequestChargeThreshold(100f );
267
267
```
268
268
269
269
#### Defining custom Diagnostics Handler
0 commit comments