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
Update README telemetry documentation to use DiagnosticsOptions.IsTelemetryEnabled instead of outdated custom policy approach (Azure#50531)
* Initial plan for issue
* Update README telemetry documentation to use DiagnosticsOptions.IsTelemetryEnabled instead of custom policy
Co-authored-by: KrzysztofCwalina <[email protected]>
* Remove redundant sentence from telemetry documentation
Address @heaths feedback to remove the longer, more complex sentence that was redundant with the concise explanation that follows.
Co-authored-by: heaths <[email protected]>
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: KrzysztofCwalina <[email protected]>
Co-authored-by: heaths <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+9-18Lines changed: 9 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,32 +60,23 @@ The software may collect information about you and your use of the software and
60
60
61
61
Telemetry collection is on by default.
62
62
63
-
To opt out, you can disable telemetry at client construction. Creating a [synchronous policy](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/core/Azure.Core/samples/Pipeline.md#implementing-a-synchronous-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.
64
-
65
63
> NOTE: `HttpClient` may set default user agent headers as part of the .NET platform behavior. This value does not contain any Azure SDK telemetry information.
Alternatively, you can disable telemetry globally by setting the `AZURE_TELEMETRY_DISABLED` environment variable to `true` before creating any clients.
79
+
89
80
### Community
90
81
91
82
* Chat with other community members [](https://gitter.im/azure/azure-sdk-for-net?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
0 commit comments