Table of Contents

Class HttpClientCoreObserver

Namespace
Steeltoe.Management.Tracing.Observer
Assembly
Steeltoe.Management.TracingBase.dll
public class HttpClientCoreObserver : HttpClientTracingObserver, IDiagnosticObserver, IObserver<KeyValuePair<string, object>>
Inheritance
HttpClientCoreObserver
Implements
Inherited Members

Constructors

HttpClientCoreObserver(ITracingOptions, ITracing, ILogger<HttpClientCoreObserver>)

public HttpClientCoreObserver(ITracingOptions options, ITracing tracing, ILogger<HttpClientCoreObserver> logger = null)

Parameters

options ITracingOptions
tracing ITracing
logger ILogger<HttpClientCoreObserver>

Methods

HandleExceptionEvent(HttpRequestMessage, Exception)

protected void HandleExceptionEvent(HttpRequestMessage request, Exception exception)

Parameters

request HttpRequestMessage
exception Exception

HandleStartEvent(HttpRequestMessage)

protected void HandleStartEvent(HttpRequestMessage request)

Parameters

request HttpRequestMessage

HandleStopEvent(HttpRequestMessage, HttpResponseMessage, TaskStatus)

protected void HandleStopEvent(HttpRequestMessage request, HttpResponseMessage response, TaskStatus taskStatus)

Parameters

request HttpRequestMessage
response HttpResponseMessage
taskStatus TaskStatus

InjectTraceContext(HttpRequestMessage, ISpan)

protected void InjectTraceContext(HttpRequestMessage message, ISpan parentSpan)

Parameters

message HttpRequestMessage
parentSpan ISpan

ProcessEvent(string, object)

public override void ProcessEvent(string evnt, object arg)

Parameters

evnt string
arg object