Skip to content

Commit

Permalink
Fix spec
Browse files Browse the repository at this point in the history
  • Loading branch information
reachfh committed Dec 23, 2023
1 parent 90553d3 commit 3bab57d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/opentelemetry_xray_propagator.erl
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ encode(SpanCtx) ->


% @doc Encode trace_id to string.
-spec encode_trace_id(opentelemetry:span_ctx()) -> unicode:latin1_chardata().
-spec encode_trace_id(opentelemetry:span_ctx() | non_neg_integer()) -> unicode:latin1_chardata().
encode_trace_id(#span_ctx{trace_id = TraceId}) ->
TraceIdHex = unicode:characters_to_binary(io_lib:format("~32.16.0b", [TraceId])),
<<Time:8/binary, UniqueId:24/binary>> = TraceIdHex,
Expand Down

0 comments on commit 3bab57d

Please sign in to comment.