public SpanDecoratorHooks(BuildersDecoratorHooks mainHooks, OnSpanFinished callBack) { OnSpanStarted = mainHooks.OnSpanStarted; OnSpanActivated = mainHooks.OnSpanActivated; OnSpanFinished = (OnSpanFinished)Delegate.Combine(mainHooks.OnSpanFinished, callBack); OnSpanLog = mainHooks.OnSpanLog; OnSpanSetTag = mainHooks.OnSpanSetTag; }
internal TracerDecoration( OnSpanLog onSpanLog, OnSpanSetTag onSpanSetTag, OnSpanFinished onSpanFinished, OnSpanStarted onSpanStarted, OnSpanActivated onSpanActivated, OnSpanStartedWithFinishCallback onSpanStartedWithFinishCallback) { this.onSpanLog = onSpanLog; this.onSpanSetTag = onSpanSetTag; this.onSpanFinished = onSpanFinished; this.onSpanStarted = onSpanStarted; this.onSpanActivated = onSpanActivated; this.onSpanStartedWithFinishCallback = onSpanStartedWithFinishCallback; }
public TracerDecoratorBuilder OnSpanFinished(OnSpanFinished onSpanFinished) { _onSpanFinisheds.Add(onSpanFinished); return(this); }