| | | 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 | | { |
| | 172 | 13 | | IList<string> allowedHeaderNames = clientOptions.Diagnostics.LoggedHeaderNames; |
| | 172 | 14 | | allowedHeaderNames.Add("x-ms-keyvault-network-info"); |
| | 172 | 15 | | allowedHeaderNames.Add("x-ms-keyvault-region"); |
| | 172 | 16 | | allowedHeaderNames.Add("x-ms-keyvault-service-version"); |
| | | 17 | | |
| | 172 | 18 | | clientOptions.Diagnostics.LoggedQueryParameters.Add("api-version"); |
| | 172 | 19 | | } |
| | | 20 | | } |
| | | 21 | | } |