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
Create a DelegatingHandler that logs requests and responses (only added to the pipeline when an ILogger is supplied).
To implement this, we'll need to add support for specifying one or more DelegatingHandlers when creating a KubeApiClient.
Consider adding to KubeClientOptions?
publicclassKubeClientOptions{/// <summary>/// Factories for message handlers (if any) to be added to the HTTP request pipeline./// </summary>publicList<Func<DelegatingHandler>> MessageHandlers {get;}=new List<Func<DelegatingHandler>();}
We can then implement an AddLogging extension method for KubeClientOptions which adds the required handler.
The text was updated successfully, but these errors were encountered:
Create a
DelegatingHandler
that logs requests and responses (only added to the pipeline when anILogger
is supplied).To implement this, we'll need to add support for specifying one or more
DelegatingHandler
s when creating aKubeApiClient
.Consider adding to
KubeClientOptions
?We can then implement an
AddLogging
extension method forKubeClientOptions
which adds the required handler.The text was updated successfully, but these errors were encountered: