@azure/cosmos 3.17.2 → 3.17.3-alpha.20230103.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Release History
2
2
 
3
+ ## 3.17.3 (Unreleased)
4
+
5
+ ### Features Added
6
+
7
+ ### Breaking Changes
8
+
9
+ ### Bugs Fixed
10
+
11
+ ### Other Changes
12
+
3
13
  ## 3.17.2 (2022-11-15)
4
14
 
5
15
  ### Bugs Fixed
package/README.md CHANGED
@@ -133,7 +133,7 @@ const cities = [
133
133
  { id: "3", name: "Chicago", state: "IL", isCapitol: false }
134
134
  ];
135
135
  for (const city of cities) {
136
- container.items.create(city);
136
+ await container.items.create(city);
137
137
  }
138
138
  ```
139
139
 
@@ -213,6 +213,18 @@ The Azure SDKs are designed to support ES5 JavaScript syntax and [LTS versions o
213
213
 
214
214
  While working with Cosmos DB, you might encounter transient failures caused by [rate limits][cosmos_request_units] enforced by the service, or other transient problems like network outages. For information about handling these types of failures, see [Retry pattern][azure_pattern_retry] in the Cloud Design Patterns guide, and the related [Circuit Breaker pattern][azure_pattern_circuit_breaker].
215
215
 
216
+ ### Logging
217
+
218
+ Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`. While using `AZURE_LOG_LEVEL` make sure to set it before logging library is initialized.
219
+ Ideally pass it through command line, if using libraries like `dotenv` make sure such libraries are initialized before logging library.
220
+
221
+ ```javascript
222
+ const { setLogLevel } = require("@azure/logger");
223
+ setLogLevel("info");
224
+ ```
225
+
226
+ For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
227
+
216
228
  ## Next steps
217
229
 
218
230
  ### More sample code
package/dist/index.js CHANGED
@@ -179,7 +179,7 @@ const Constants = {
179
179
  AzureNamespace: "Azure.Cosmos",
180
180
  AzurePackageName: "@azure/cosmos",
181
181
  SDKName: "azure-cosmos-js",
182
- SDKVersion: "3.17.2",
182
+ SDKVersion: "3.17.3",
183
183
  Quota: {
184
184
  CollectionSize: "collectionSize",
185
185
  },