Azure / azure-cosmosdb-node

We recently announced deprecation of JS v1 SDK and this repo. Starting September 2020 Microsoft will not provide support for this library. Existing applications using library will continue to work as-is. We strongly recommend upgrading to @azure/cosmos library.
https://github.com/Azure/azure-sdk-for-js
MIT License
141 stars 108 forks source link

Expose the activityID in the headers #239

Closed markusahlstrand closed 6 years ago

markusahlstrand commented 6 years ago

When working with support-team for cosmosDB they always request the activityID from the query. As this currently isn't exposed in the node-sdk we have to modify the sdk to get a hold of it. Would be super nice if this id was returned by default.

srinathnarayanan commented 6 years ago

You can get it from the headers using headers["x-ms-activity-id"]