Table of Contents

Class AspNetCoreTracingObserver

Namespace
Steeltoe.Management.Tracing.Observer
Assembly
Steeltoe.Management.TracingCore.dll
public abstract class AspNetCoreTracingObserver : DiagnosticObserver, IDiagnosticObserver, IObserver<KeyValuePair<string, object>>
Inheritance
AspNetCoreTracingObserver
Implements
Derived
Inherited Members

Constructors

AspNetCoreTracingObserver(string, ITracingOptions, ITracing, ILogger)

protected AspNetCoreTracingObserver(string observerName, ITracingOptions options, ITracing tracing, ILogger logger)

Parameters

observerName string
options ITracingOptions
tracing ITracing
logger ILogger

Properties

Options

protected ITracingOptions Options { get; }

Property Value

ITracingOptions

PathMatcher

protected Regex PathMatcher { get; }

Property Value

Regex

Propagation

protected ITextFormat Propagation { get; }

Property Value

ITextFormat

Tracer

protected ITracer Tracer { get; }

Property Value

ITracer

Tracing

protected ITracing Tracing { get; }

Property Value

ITracing

Methods

GetCurrentSpan()

protected ISpan GetCurrentSpan()

Returns

ISpan

GetExceptionMessage(Exception)

protected virtual string GetExceptionMessage(Exception exception)

Parameters

exception Exception

Returns

string

GetExceptionStackTrace(Exception)

protected virtual string GetExceptionStackTrace(Exception exception)

Parameters

exception Exception

Returns

string

ShouldIgnoreRequest(PathString)

protected virtual bool ShouldIgnoreRequest(PathString pathString)

Parameters

pathString PathString

Returns

bool