Closed marcusirgens closed 8 months ago
As an afterthought, it might be confusing that the ProcessGroupChanged
variant, which does contain a list of ActorCell
, does not cause these methods to return anything. Could be resolved by naming them differently?
Attention: 5 lines
in your changes are missing coverage. Please review.
Comparison is base (
c10c28f
) 79.63% compared to head (c920757
) 79.71%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Rebased on c10c28f11ddffeb475eee69948171ae45a9fd029.
Ah looks like the docs need an update. Likely just a module path specification, but I'd like the ci clean before merging
Great, ill look at it and have a patch ready tomorrow. 🎉 On 11 Nov 2023 at 20:59 +0100, Sean Lawlor @.***>, wrote:
Ah looks like the docs need an update. Likely just a module path specification, but I'd like the ci clean before merging — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Likely just a module path specification
Hopefully corrected now.
As an afterthought, it might be confusing that the
ProcessGroupChanged
variant, which does contain a list ofActorCell
, does not cause these methods to return anything. Could be resolved by naming them differently?
I changed to "an Actor lifecycle event" to make it slightly more obvious that these refer to started/terminated/panicked-events, does that sound OK to you, @slawlor?
Add convenience methods on SupervisionEvent to quickly get the actor the event refers to.
I find myself frequently writing pattern matchers for the
SupervisionEvent
type, such as for tracing or other general supervision event handling. Here is one example from the code base I'm working with:Here's another non-instrumentation-related message (using
if let
would be "cleaner", I think this is a copy-paste from the defaulthandle_supervision_evt
implementation):These could be rewritten, respectively, like the following (ignoring the mess that is field formatting with the
tracing
package...)and (now with less pattern matching, at least?)