File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ if Code.ensure_loaded?(:otel_sampler) do
5959 case parent_sampled do
6060 "true" -> { :inherit , true , tracestate }
6161 "false" -> { :inherit , false , tracestate }
62- _ -> :no_parent
62+ nil -> :no_parent
6363 end
6464 else
6565 :no_parent
@@ -95,13 +95,15 @@ if Code.ensure_loaded?(:otel_sampler) do
9595 ]
9696 end
9797
98+ defp get_tracestate_value ( { :tracestate , tracestate } , key ) do
99+ get_tracestate_value ( tracestate , key )
100+ end
101+
98102 defp get_tracestate_value ( tracestate , key ) when is_list ( tracestate ) do
99103 case List . keyfind ( tracestate , key , 0 ) do
100104 { ^ key , value } -> value
101105 nil -> nil
102106 end
103107 end
104-
105- defp get_tracestate_value ( _tracestate , _key ) , do: nil
106108 end
107109end
You can’t perform that action at this time.
0 commit comments