Skip to content
Permalink
Browse files
Make trace_id 128bit
  • Loading branch information
sile committed Jan 5, 2018
1 parent b9463e4 commit b7a2c72d764a136dba7adb0622ab78fc702de242
Showing 1 changed file with 5 additions and 6 deletions.
@@ -106,19 +106,18 @@ get_flags(Context) ->
%%------------------------------------------------------------------------------
%% @private
make_span_context_state([]) ->
TracerId = rand:uniform(16#FFFFFFFFFFFFFFFF),
#?STATE{
trace_id = TracerId,
span_id = TracerId,
trace_id = rand:uniform(16#FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF),
span_id = rand:uniform(16#FFFFFFFFFFFFFFFF),
is_sampled = true
};
make_span_context_state([{_, Ref} | _]) ->
#?STATE{trace_id = TraceId} =
passage_span_context:get_state(passage_span:get_context(Ref)),
#?STATE{
trace_id = TraceId,
span_id = rand:uniform(16#FFFFFFFFFFFFFFFF),
is_sampled = true
trace_id = TraceId,
span_id = rand:uniform(16#FFFFFFFFFFFFFFFF),
is_sampled = true
}.

%% @private

0 comments on commit b7a2c72

Please sign in to comment.