Persistent Actor configuration

Persistent actors need to be selected for telemetry.

Note: Persistent actors are not instrumented automatically. They must have instrumentation explicitly enabled - see sections below for how to.

Here is a couple of examples:

by-path
cinnamon.akka {
  persistence.entities {
    "foo-entity" {
      includes = "/system/sharding/EntityFooName/*"
      report-by = group
    }
  }
}
by-class
cinnamon.akka {
  persistence.entities {
    "/user/a/*" {
      report-by = class
    }
  }
}

The additional command and event type dimensions can be enabled via the opt-in command/event type dimensions.

All the existing actors selections and groupings can be used for persistent actor selections such as by-class, by-path as well as wildcards and template groups. See the actor configuration for more details on how to use actor selections and the report-by option. The important difference from the actor configuration is that the configuration is specified in the different configuration namespace cinnamon.akka.persistence.entities and Cinnamon Agent will only instrument persistent actors and ignore all the other actors for the selection. The latter is useful for example for sharded actors (see the by-path example above) because some other actors (e.g. Shard or ShardRegion) will share the same actor path with the persistent actors.