Table of Contents

Class AspNetCoreMvcViewObserver

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

Constructors

AspNetCoreMvcViewObserver(ITracingOptions, ITracing, ILogger<AspNetCoreMvcViewObserver>)

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

Parameters

options ITracingOptions
tracing ITracing
logger ILogger<AspNetCoreMvcViewObserver>

Properties

Active

protected AspNetCoreTracingObserver.SpanContext Active { get; }

Property Value

AspNetCoreTracingObserver.SpanContext

Methods

ExtractSpanName(ViewContext)

protected virtual string ExtractSpanName(ViewContext context)

Parameters

context ViewContext

Returns

string

ExtractViewPath(ViewContext)

protected string ExtractViewPath(ViewContext context)

Parameters

context ViewContext

Returns

string

HandleAfterViewEvent()

protected virtual void HandleAfterViewEvent()

HandleBeforeViewEvent(HttpContext, ViewContext)

protected virtual void HandleBeforeViewEvent(HttpContext context, ViewContext viewContext)

Parameters

context HttpContext
viewContext ViewContext

ProcessEvent(string, object)

public override void ProcessEvent(string evnt, object arg)

Parameters

evnt string
arg object