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
ITracingOptionstracing
ITracinglogger
ILogger<AspNetCoreMvcActionObserver>
Properties
Active
protected AspNetCoreTracingObserver.SpanContext Active { get; }
Property Value
Methods
ExtractActionName(ActionDescriptor)
protected string ExtractActionName(ActionDescriptor descriptor)
Parameters
descriptor
ActionDescriptor
Returns
ExtractControllerName(ActionDescriptor)
protected string ExtractControllerName(ActionDescriptor descriptor)
Parameters
descriptor
ActionDescriptor
Returns
ExtractSpanName(ActionDescriptor)
protected string ExtractSpanName(ActionDescriptor descriptor)
Parameters
descriptor
ActionDescriptor
Returns
HandleAfterActionEvent()
protected virtual void HandleAfterActionEvent()
HandleBeforeActionEvent(HttpContext, ActionDescriptor)
protected virtual void HandleBeforeActionEvent(HttpContext context, ActionDescriptor descriptor)
Parameters
context
HttpContextdescriptor
ActionDescriptor
ProcessEvent(string, object)
public override void ProcessEvent(string evnt, object arg)