Table of Contents

Class TraceDiagnosticObserver

Namespace
Steeltoe.Management.Endpoint.Trace.Observer
Assembly
Steeltoe.Management.EndpointWeb.dll
public class TraceDiagnosticObserver : DiagnosticObserver, IDiagnosticObserver, IObserver<KeyValuePair<string, object>>, ITraceRepository
Inheritance
TraceDiagnosticObserver
Implements
Inherited Members

Constructors

TraceDiagnosticObserver(ITraceOptions, ILogger<TraceDiagnosticObserver>)

public TraceDiagnosticObserver(ITraceOptions options, ILogger<TraceDiagnosticObserver> logger = null)

Parameters

options ITraceOptions
logger ILogger<TraceDiagnosticObserver>

Methods

GetJavaTime(long)

protected long GetJavaTime(long ticks)

Parameters

ticks long

Returns

long

GetPathInfo(HttpRequest)

protected string GetPathInfo(HttpRequest request)

Parameters

request HttpRequest

Returns

string

GetRemoteAddress(HttpContext)

protected string GetRemoteAddress(HttpContext context)

Parameters

context HttpContext

Returns

string

GetRequestHeaders(NameValueCollection)

protected Dictionary<string, object> GetRequestHeaders(NameValueCollection headers)

Parameters

headers NameValueCollection

Returns

Dictionary<string, object>

GetRequestParameters(HttpRequest)

protected Dictionary<string, string[]> GetRequestParameters(HttpRequest request)

Parameters

request HttpRequest

Returns

Dictionary<string, string[]>

GetResponseHeaders(int, NameValueCollection)

protected Dictionary<string, object> GetResponseHeaders(int status, NameValueCollection headers)

Parameters

status int
headers NameValueCollection

Returns

Dictionary<string, object>

GetTimeTaken(TimeSpan)

protected string GetTimeTaken(TimeSpan duration)

Parameters

duration TimeSpan

Returns

string

GetTraces()

public List<TraceResult> GetTraces()

Returns

List<TraceResult>

MakeTrace(HttpContext, TimeSpan)

protected TraceResult MakeTrace(HttpContext context, TimeSpan duration)

Parameters

context HttpContext
duration TimeSpan

Returns

TraceResult

ProcessEvent(string, object)

public override void ProcessEvent(string key, object value)

Parameters

key string
value object