| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | using System.Collections.Generic; |
| | 5 | | using Azure.Core; |
| | 6 | |
|
| | 7 | | namespace Azure.Security.KeyVault |
| | 8 | | { |
| | 9 | | internal static class ClientOptionsExtensions |
| | 10 | | { |
| | 11 | | public static void ConfigureLogging(this ClientOptions clientOptions) |
| | 12 | | { |
| 178 | 13 | | IList<string> allowedHeaderNames = clientOptions.Diagnostics.LoggedHeaderNames; |
| 178 | 14 | | allowedHeaderNames.Add("x-ms-keyvault-network-info"); |
| 178 | 15 | | allowedHeaderNames.Add("x-ms-keyvault-region"); |
| 178 | 16 | | allowedHeaderNames.Add("x-ms-keyvault-service-version"); |
| | 17 | |
|
| 178 | 18 | | clientOptions.Diagnostics.LoggedQueryParameters.Add("api-version"); |
| 178 | 19 | | } |
| | 20 | | } |
| | 21 | | } |