Skip to content
Permalink
Browse files
Use the identifier of the root span as the tracer identifier
  • Loading branch information
sile committed Dec 25, 2017
1 parent 0c5486b commit d548b0283929966a50dbb82e98234c52c24b9543
Showing 1 changed file with 3 additions and 2 deletions.
@@ -106,9 +106,10 @@ get_flags(Context) ->
%%------------------------------------------------------------------------------
%% @private
make_span_context_state([]) ->
TracerId = rand:uniform(16#FFFFFFFFFFFFFFFF),
#?STATE{
trace_id = rand:uniform(16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF),
span_id = rand:uniform(16#FFFFFFFFFFFFFFFF),
trace_id = TracerId,
span_id = TracerId,
is_sampled = true
};
make_span_context_state([{_, Ref} | _]) ->

0 comments on commit d548b02

Please sign in to comment.