we want to use the monitoring via Influx, but have problems setting up a proper name for actions (transitions work fine). By default, the tags look like this:
One example tag value: "org.springframework.statemachine.action.Actions$Lambda$1563/0x0000000840da7040@10ef7672"
I tried to define a name in the action via toString() or @Component("foo"), but still got that dynamic name. Can somebody give a hint how to set a proper name?
The name will be evaluated in org.springframework.statemachine.boot.support.BootStateMachineMonitor#actionToName, but I don't know how to give the Mono<Void>> action a proper name.
Thanks in advance!
Actions are separate beans implementing the org.springframework.statemachine.action.Action interface and are setup as fields in org.springframework.statemachine.config.EnumStateMachineConfigurerAdapter via @Qualifier("actionName") private final Action<Enum1, Enum2> actionName;
Hi,
we want to use the monitoring via Influx, but have problems setting up a proper name for actions (transitions work fine). By default, the tags look like this:![Bildschirmfoto 2022-03-03 um 09 36 32](https://user-images.githubusercontent.com/1803584/156527876-bf02f20d-713b-4358-bdaa-b48b9650edc2.png)
One example tag value: "org.springframework.statemachine.action.Actions$Lambda$1563/0x0000000840da7040@10ef7672"
I tried to define a name in the action via toString() or @Component("foo"), but still got that dynamic name. Can somebody give a hint how to set a proper name? The name will be evaluated in org.springframework.statemachine.boot.support.BootStateMachineMonitor#actionToName, but I don't know how to give the
Mono<Void>> action
a proper name. Thanks in advance!Actions are separate beans implementing the org.springframework.statemachine.action.Action interface and are setup as fields in org.springframework.statemachine.config.EnumStateMachineConfigurerAdapter via
@Qualifier("actionName") private final Action<Enum1, Enum2> actionName;