You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+52Lines changed: 52 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -393,6 +393,58 @@ Many people all over the world have helped make this project better. You'll wan
393
393
394
394
Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) <secure@microsoft.com>. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the [Security TechCenter](https://www.microsoft.com/msrc/faqs-report-an-issue).
395
395
396
+
### Data Collection
397
+
398
+
The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described below. You can learn more about data collection and use in the help documentation and Microsoft's [privacy statement](https://go.microsoft.com/fwlink/?LinkID=824704). For more information on the data collected by the Azure SDK, please visit the [Telemetry Guidelines](https://azure.github.io/azure-sdk/general_azurecore.html#telemetry-policy) page.
399
+
400
+
### Telemetry Configuration
401
+
402
+
Telemetry collection is on by default.
403
+
404
+
To opt out, you can disable telemetry at client construction. Creating a custom HTTP policy in your application gives you access to the headers sent with each request, allowing you to remove the `User-Agent` header containing client telemetry. To use the policy, you will add it to the options for your specific client as part of client creation. This will disable Azure SDK telemetry for all methods in the client. You will need to register the policy with each client created.
405
+
406
+
An example policy implementation looks like:
407
+
408
+
```cpp
409
+
classRemoveUserAgentPolicy : publicHttpPolicy {
410
+
private:
411
+
std::unique_ptr<RawResponse> Send(
412
+
Request& request,
413
+
NextHttpPolicy nextPolicy,
414
+
Context const& context) const override
415
+
{
416
+
// Set your own User-Agent header or set an empty one to suppress telemetry
0 commit comments