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

Commit 67d2075

Browse files
essentsloughter
authored andcommitted
oc_trace:start_span/2,3 accepts undefined SpanCtx (#154)
It calls the internal new_span_ function which accepts undefined.
1 parent 68fc8e4 commit 67d2075

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/oc_trace.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ with_child_span(Ctx, Name, Options) ->
128128

129129
-spec start_span(Name, SpanCtx) -> SpanCtx when
130130
Name :: unicode:unicode_binary(),
131-
SpanCtx :: opencensus:span_ctx().
131+
SpanCtx :: opencensus:span_ctx() | undefined.
132132
start_span(Name, SpanCtx) ->
133133
new_span_(Name, SpanCtx, ?SPAN_KIND_UNSPECIFIED, false).
134134

135135
-spec start_span(Name, SpanCtx, Options) -> SpanCtx when
136136
Name :: unicode:unicode_binary(),
137-
SpanCtx :: opencensus:span_ctx(),
137+
SpanCtx :: opencensus:span_ctx() | undefined,
138138
Options :: #{remote_parent => boolean(),
139139
sampler => module(),
140140
kind => opencensus:span_kind(),

0 commit comments

Comments
 (0)