Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit b1a55ca

Browse files
committed
fix: use correct spec for oc_span:finish_span/2
1 parent 10fa099 commit b1a55ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/oc_span.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@
4141
%% Finish a span, setting the end_time and sending to the reporter.
4242
%% @end
4343
%%--------------------------------------------------------------------
44-
-spec finish_span(opencensus:span_ctx(), maybe(opencensus:span())) -> true.
44+
-spec finish_span(opencensus:span_ctx(), maybe(opencensus:span())) -> ok | {error, term()}.
4545
finish_span(#span_ctx{tracestate=Tracestate}, Span=#span{}) ->
4646
EndTime = wts:timestamp(),
4747
%% update tracestate to what the context has when finished
4848
Span1 = Span#span{end_time=EndTime,
4949
tracestate=Tracestate},
5050
oc_trace_reporter:store_span(Span1);
5151
finish_span(_, _) ->
52-
true.
52+
ok.
5353

5454
%%--------------------------------------------------------------------
5555
%% @doc

0 commit comments

Comments
 (0)