Phobos instrumentation settings for actor props get overwritten by PhobosActorCell settings #85
Labels
actor-integration 📬
Integration with Akka.NET runtime
bug
Something isn't working
configuration 📃
Issues related to HOCON configuration for individual drivers
I continue struggling with custom actor type name, and I believe this time I hit an issue that may be unrelated to F#.
I debug the code that creates an instance of an actor by calling ActorOf on an actor factory. If I debug the code, I reach the following Phobos code:
public override IActorRef ActorOf(Props props, string name = null)
{
return base.ActorOf(this.InstrumentationSettings.PropagateSettingsToChildren ? props.WithInstrumentation(this.InstrumentationSettings) : props, name);
}
The custom actor type name is inside "props" data that are sent to the method ActorOf. But the flag PropagateSettingsToChildren on the instance of PhobosActorCell is set to "true", so instead of using the "props" data that are sent to the method it uses data that belong to this.InstrumentationSettings, and there ActorTypeName is set to "null". So whatever I send gets overwritten by the InstrumentationSettings of the PhobosActorCell.
I never set the flag PropagateSettingsToChildren.
So how should I trigger usage of setting from my props, and not the PhobosActorCell?
The text was updated successfully, but these errors were encountered: