File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -36,4 +36,6 @@ func (*noopSpan) Tag(string, string) {}
3636
3737func (* noopSpan ) Finish () {}
3838
39+ func (* noopSpan ) FinishedWithDuration (duration time.Duration ) {}
40+
3941func (* noopSpan ) Flush () {}
Original file line number Diff line number Diff line change @@ -45,6 +45,12 @@ type Span interface {
4545 // span.Flush).
4646 Finish ()
4747
48+ // Finish the Span with duration and send to Reporter. If DelaySend option was used at
49+ // Span creation time, FinishedWithDuration will not send the Span to the Reporter. It then
50+ // becomes the user's responsibility to get the Span reported (by using
51+ // span.Flush).
52+ FinishedWithDuration (duration time.Duration )
53+
4854 // Flush the Span to the Reporter (regardless of being finished or not).
4955 // This can be used if the DelaySend SpanOption was set or when dealing with
5056 // one-way RPC tracing where duration might not be measured.
You can’t perform that action at this time.
0 commit comments