Skip to content
Permalink
Browse files
Fix handling of follows-from reference
  • Loading branch information
sile committed Oct 29, 2017
1 parent e009339 commit 9d93eab7232dbc1107250e3815620e0de5852ac2
Showing 1 changed file with 2 additions and 7 deletions.
@@ -117,14 +117,9 @@ make_span_context_state([]) ->
span_id = rand:uniform(16#FFFFFFFFFFFFFFFF),
is_sampled = true
};
make_span_context_state([{Type, Ref} | _]) ->
#?STATE{trace_id = TraceId, span_id = RefSpanId, parent_span_id = RefParentId} =
make_span_context_state([{_, Ref} | _]) ->
#?STATE{trace_id = TraceId, span_id = ParentId} =
passage_span_context:get_state(passage_span:get_context(Ref)),
ParentId =
case Type of
child_of -> RefSpanId;
follows_from -> RefParentId
end,
#?STATE{
trace_id = TraceId,
span_id = rand:uniform(16#FFFFFFFFFFFFFFFF),

0 comments on commit 9d93eab

Please sign in to comment.