wasmCloud / lattice-observer

A reusable Elixir library for monitoring a lattice and deriving observed state
https://wasmcloud.com
Apache License 2.0
3 stars 2 forks source link

feat(*): support actor_scaled event #36

Closed brooksmtownsend closed 8 months ago

brooksmtownsend commented 8 months ago

Feature or Problem

This PR adds support for the actor_scaled event which will allow the lattice observer to modify the instances state with the single event instead of handling the individual actor_started/actor_stopped events. I'm leapfrogging the plural events here as we didn't have support for them and after wasmCloud v0.82 is released we won't need them anyways.

There will be another PR shortly supporting the new heartbeat format which will also make it into 0.5.0.

Related Issues

The actor scaled event includes the image ref, which could enable #16

Release Information

0.5.0

Consumer Impact

No consumer impact as this event isn't even released yet.

Testing

Unit Test(s)

Added a unit test to validate functionality. All instance IDs are just supplanted as N/A as they don't matter.

Acceptance or Integration

Manual Verification