Skip to content

Commit

Permalink
Update lib/kino/process/tracer.ex
Browse files Browse the repository at this point in the history
Co-authored-by: Jonatan Kłosko <[email protected]>
  • Loading branch information
hugobarauna and jonatanklosko authored Jun 13, 2024
1 parent 34537bb commit cfaf5fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/kino/process/tracer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ defmodule Kino.Process.Tracer do
}

trace_events = [new_event | trace_info.raw_trace_events]
process_labels = update_process_labels(trace_info.process_labels, from, to)

process_labels =
trace_info.process_labels
|> put_new_label(from)
|> put_new_label(to)

{:noreply, %{trace_info | raw_trace_events: trace_events, process_labels: process_labels}}
end
Expand Down

0 comments on commit cfaf5fb

Please sign in to comment.