Class HttpTraceDiagnosticObserver
Inheritance
System.Object
HttpTraceDiagnosticObserver
Implements
IObserver<KeyValuePair<System.String, System.Object>>
Assembly: Steeltoe.Management.EndpointCore.dll
Syntax
public class HttpTraceDiagnosticObserver : DiagnosticObserver, IDiagnosticObserver, IHttpTraceRepository
Constructors
|
Edit this page
View Source
HttpTraceDiagnosticObserver(ITraceOptions, ILogger<TraceDiagnosticObserver>)
Declaration
public HttpTraceDiagnosticObserver(ITraceOptions options, ILogger<TraceDiagnosticObserver> logger = null)
Parameters
Methods
|
Edit this page
View Source
Declaration
protected Dictionary<string, string[]> GetHeaders(IHeaderDictionary headers)
Parameters
Type |
Name |
Description |
IHeaderDictionary |
headers |
|
Returns
Type |
Description |
Dictionary<System.String, System.String[]> |
|
|
Edit this page
View Source
GetJavaTime(Int64)
Declaration
protected long GetJavaTime(long ticks)
Parameters
Type |
Name |
Description |
System.Int64 |
ticks |
|
Returns
Type |
Description |
System.Int64 |
|
|
Edit this page
View Source
GetPathInfo(HttpRequest)
Declaration
protected string GetPathInfo(HttpRequest request)
Parameters
Type |
Name |
Description |
HttpRequest |
request |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
GetProperty(Object, out HttpContext)
Declaration
protected void GetProperty(object obj, out HttpContext context)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
HttpContext |
context |
|
|
Edit this page
View Source
GetRemoteAddress(HttpContext)
Declaration
protected string GetRemoteAddress(HttpContext context)
Parameters
Type |
Name |
Description |
HttpContext |
context |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
GetRequestUri(HttpRequest)
Declaration
protected string GetRequestUri(HttpRequest request)
Parameters
Type |
Name |
Description |
HttpRequest |
request |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
GetSessionId(HttpContext)
Declaration
protected string GetSessionId(HttpContext context)
Parameters
Type |
Name |
Description |
HttpContext |
context |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
Declaration
protected string GetTimeTaken(TimeSpan duration)
Parameters
Type |
Name |
Description |
TimeSpan |
duration |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
GetTraces()
Declaration
public HttpTraceResult GetTraces()
Returns
|
Edit this page
View Source
GetUserPrincipal(HttpContext)
Declaration
protected string GetUserPrincipal(HttpContext context)
Parameters
Type |
Name |
Description |
HttpContext |
context |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
MakeTrace(HttpContext, TimeSpan)
Declaration
protected HttpTrace MakeTrace(HttpContext context, TimeSpan duration)
Parameters
Type |
Name |
Description |
HttpContext |
context |
|
TimeSpan |
duration |
|
Returns
|
Edit this page
View Source
ProcessEvent(String, Object)
Declaration
public override void ProcessEvent(string key, object value)
Parameters
Type |
Name |
Description |
System.String |
key |
|
System.Object |
value |
|
Overrides
Implements
IObserver<>