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
optionsITracingOptionstracingITracingloggerILogger<AspNetCoreMvcViewObserver>
Properties
Active
protected AspNetCoreTracingObserver.SpanContext Active { get; }
Property Value
Methods
ExtractSpanName(ViewContext)
protected virtual string ExtractSpanName(ViewContext context)
Parameters
contextViewContext
Returns
ExtractViewPath(ViewContext)
protected string ExtractViewPath(ViewContext context)
Parameters
contextViewContext
Returns
HandleAfterViewEvent()
protected virtual void HandleAfterViewEvent()
HandleBeforeViewEvent(HttpContext, ViewContext)
protected virtual void HandleBeforeViewEvent(HttpContext context, ViewContext viewContext)
Parameters
contextHttpContextviewContextViewContext
ProcessEvent(string, object)
public override void ProcessEvent(string evnt, object arg)