Statix 1.4.0 error after upgrade to elixir 1.15.1 and erlang 26.0.2(from 1.14.4, 25.3) -- "lost value due to port closure"

Hi all, after upgrading to elixir 1.15.1, erlang 26.0.2, I’ve seen

[error] Markably.Statix histogram metric "pipeline_rest.update_mby_tasks_aggregator.push_delivered" lost value 161 due to port closure

I’m not sure where to start with this.

this is the location where the call is made:

  @impl true
  def handle_out("task:update", payload, socket) do
    dbg(payload)

    push(
      socket,
      "user:" <> socket.assigns.user_id,
      payload
    )

    Markably.Statix.histogram(
      "pipeline_rest.update_mby_tasks_aggregator.push_delivered",
      Timing.unix_ms_now() - payload.enqueued_at
    )

    {:noreply, socket}
  end

Any suggestions?
Michael

1 Like

Just wanted to say we’re seeing the same thing after the upgrade. There are tons of these error messages during our unit tests.

1 Like