Class HttpClientCoreObserver
Inheritance
System.Object
HttpClientCoreObserver
Implements
IObserver<KeyValuePair<System.String, System.Object>>
Assembly: Steeltoe.Management.EndpointBase.dll
Syntax
public class HttpClientCoreObserver : MetricsObserver, IDiagnosticObserver
Constructors
|
Edit this page
View Source
HttpClientCoreObserver(IMetricsObserverOptions, ILogger<HttpClientCoreObserver>, IViewRegistry)
Declaration
public HttpClientCoreObserver(IMetricsObserverOptions options, ILogger<HttpClientCoreObserver> logger, IViewRegistry viewRegistry)
Parameters
Methods
|
Edit this page
View Source
GetLabels(HttpRequestMessage, HttpResponseMessage, TaskStatus)
Declaration
protected IEnumerable<KeyValuePair<string, object>> GetLabels(HttpRequestMessage request, HttpResponseMessage response, TaskStatus taskStatus)
Parameters
Type |
Name |
Description |
HttpRequestMessage |
request |
|
HttpResponseMessage |
response |
|
TaskStatus |
taskStatus |
|
Returns
Type |
Description |
IEnumerable<KeyValuePair<System.String, System.Object>> |
|
|
Edit this page
View Source
GetStatusCode(HttpResponseMessage, TaskStatus)
Declaration
protected string GetStatusCode(HttpResponseMessage response, TaskStatus taskStatus)
Parameters
Type |
Name |
Description |
HttpResponseMessage |
response |
|
TaskStatus |
taskStatus |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
HandleExceptionEvent(Activity, HttpRequestMessage)
Declaration
protected void HandleExceptionEvent(Activity current, HttpRequestMessage request)
Parameters
Type |
Name |
Description |
Activity |
current |
|
HttpRequestMessage |
request |
|
|
Edit this page
View Source
HandleStopEvent(Activity, HttpRequestMessage, HttpResponseMessage, TaskStatus)
Declaration
protected void HandleStopEvent(Activity current, HttpRequestMessage request, HttpResponseMessage response, TaskStatus taskStatus)
Parameters
Type |
Name |
Description |
Activity |
current |
|
HttpRequestMessage |
request |
|
HttpResponseMessage |
response |
|
TaskStatus |
taskStatus |
|
|
Edit this page
View Source
ProcessEvent(String, Object)
Declaration
public override void ProcessEvent(string evnt, object arg)
Parameters
Type |
Name |
Description |
System.String |
evnt |
|
System.Object |
arg |
|
Overrides
Implements
IObserver<>