Class RequestPipelineDiagnosticObserver
Provides a typed listener to actions that RequestPipeline takes e.g sniff, ping, or making an API call
Inheritance
RequestPipelineDiagnosticObserver
Implements
Inherited Members
Namespace: OpenSearch.Net.Diagnostics
Assembly: OpenSearch.Net.dll
Syntax
public class RequestPipelineDiagnosticObserver : TypedDiagnosticObserverBase<RequestData, IApiCallDetails>, IObserver<KeyValuePair<string, object>>
Constructors
| Edit this page View SourceRequestPipelineDiagnosticObserver(Action<KeyValuePair<string, RequestData>>, Action<KeyValuePair<string, IApiCallDetails>>, Action<Exception>, Action)
Declaration
public RequestPipelineDiagnosticObserver(Action<KeyValuePair<string, RequestData>> onNextStart, Action<KeyValuePair<string, IApiCallDetails>> onNextEnd, Action<Exception> onError = null, Action onCompleted = null)
Parameters
Type | Name | Description |
---|---|---|
Action<KeyValuePair<string, RequestData>> | onNextStart | |
Action<KeyValuePair<string, IApiCallDetails>> | onNextEnd | |
Action<Exception> | onError | |
Action | onCompleted |