Table of Contents

Class AspNetCoreMvcActionObserver

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

Constructors

AspNetCoreMvcActionObserver(ITracingOptions, ITracing, ILogger<AspNetCoreMvcActionObserver>)

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

Parameters

options ITracingOptions
tracing ITracing
logger ILogger<AspNetCoreMvcActionObserver>

Properties

Active

protected AspNetCoreTracingObserver.SpanContext Active { get; }

Property Value

AspNetCoreTracingObserver.SpanContext

Methods

ExtractActionName(ActionDescriptor)

protected string ExtractActionName(ActionDescriptor descriptor)

Parameters

descriptor ActionDescriptor

Returns

string

ExtractControllerName(ActionDescriptor)

protected string ExtractControllerName(ActionDescriptor descriptor)

Parameters

descriptor ActionDescriptor

Returns

string

ExtractSpanName(ActionDescriptor)

protected string ExtractSpanName(ActionDescriptor descriptor)

Parameters

descriptor ActionDescriptor

Returns

string

HandleAfterActionEvent()

protected virtual void HandleAfterActionEvent()

HandleBeforeActionEvent(HttpContext, ActionDescriptor)

protected virtual void HandleBeforeActionEvent(HttpContext context, ActionDescriptor descriptor)

Parameters

context HttpContext
descriptor ActionDescriptor

ProcessEvent(string, object)

public override void ProcessEvent(string evnt, object arg)

Parameters

evnt string
arg object