Ejemplo n.º 1
0
 public EventHookScope(
     [NotNull] EventHookTracer tracer,
     [NotNull] EventHookSpan span,
     bool finishSpanOnDispose,
     Action onDispose)
 {
     this.tracer = tracer;
     this.span   = span;
     this.finishSpanOnDispose = finishSpanOnDispose;
     this.onDispose           = onDispose;
 }
 public EventHookSpan(
     EventHookTracer tracer,
     string operationName,
     EventHandler <LogEventArgs> spanLog,
     EventHandler <SetTagEventArgs> spanSetTag,
     EventHookSpanContext parentContext,
     Action <EventHookSpan> onActivated)
 {
     this.OperationName = operationName;
     this.tracer        = tracer;
     this.spanLog       = spanLog;
     this.spanSetTag    = spanSetTag;
     this.onActivated   = onActivated;
     this.parentContext = parentContext;
 }
 public EventHookSpanBuilder(
     [NotNull] EventHookTracer tracer,
     string operationName,
     EventHandler <LogEventArgs> spanLog,
     EventHandler <SetTagEventArgs> spanSetTag,
     IImmutableList <SetTagEventArgs> tagsOnStart,
     EventHookSpanContext parentSpanContext,
     bool ignoreActiveSpan)
 {
     this.tracer            = tracer;
     this.operationName     = operationName;
     this.spanLog           = spanLog;
     this.spanSetTag        = spanSetTag;
     this.tagsOnStart       = tagsOnStart;
     this.parentSpanContext = parentSpanContext;
     this.ignoreActiveSpan  = ignoreActiveSpan;
 }
Ejemplo n.º 4
0
 public EventHookScopeManager([NotNull] EventHookTracer tracer, EventHandler <LogEventArgs> spanLog, EventHandler <SetTagEventArgs> spanSetTag)
 {
     this.tracer     = tracer;
     this.spanLog    = spanLog;
     this.spanSetTag = spanSetTag;
 }