File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -685,7 +685,7 @@ defmodule Sequin.DatabasesRuntime.SlotMessageStore do
685685 end
686686
687687 defp exit_to_sequin_error ( { :noproc , _ } ) do
688- Error . invariant ( message: "[ SlotMessageStore] exited with :noproc" )
688+ Error . invariant ( message: "Call to SlotMessageStore failed with :noproc" )
689689 end
690690
691691 defp exit_to_sequin_error ( e ) when is_exception ( e ) do
Original file line number Diff line number Diff line change @@ -92,4 +92,17 @@ defmodule Sequin.IexHelpers do
9292 whereis ( :sink , id )
9393 end
9494 end
95+
96+ # pids in datadog look like this:
97+ # #PID<0.30653.0>
98+ def dd_pid ( pid ) do
99+ [ p1 , p2 , p3 ] =
100+ pid
101+ |> String . trim_leading ( "#PID<" )
102+ |> String . trim_trailing ( ">" )
103+ |> String . split ( "." )
104+ |> Enum . map ( & String . to_integer / 1 )
105+
106+ :c . pid ( p1 , p2 , p3 )
107+ end
95108end
You can’t perform that action at this time.
0 commit comments