Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #230 from Arkatufus/Change_internal_dispatcher_to_…
Browse files Browse the repository at this point in the history
…use_default_despatcher

Make system internal dispatcher use default executor
  • Loading branch information
Arkatufus authored Sep 17, 2021
2 parents 53b6cb4 + d4a58f9 commit 27122ad
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public sealed class ZipkinHttpSpanReporter : ISpanReporter
{
private static readonly AtomicCounter NameCounter = new AtomicCounter(0);

private static readonly Config NormalHocon = ConfigurationFactory.Empty;
private static readonly Config NormalHocon = ConfigurationFactory
.ParseString(@"akka.actor.internal-dispatcher.executor = ""default-executor""");
private static readonly Config DebugHocon = ConfigurationFactory.ParseString(@"akka.loglevel = DEBUG");
private readonly ActorSystem _ownedActorSystem; // if we own the ActorSystem, we have to kill it.
private readonly IActorRef _reporterActorRef;
Expand Down Expand Up @@ -63,7 +64,7 @@ public static ZipkinHttpSpanReporter Create(ZipkinHttpReportingOptions options,
{
weOwnActorSystem = true;
actorSystem = ActorSystem.Create("pbzipkin",
options.DebugLogging ? DebugHocon : NormalHocon);
options.DebugLogging ? DebugHocon.WithFallback(NormalHocon) : NormalHocon);
}

// spawn as a System actor, so in the event of being in a non-owned system our traces get shut down
Expand Down

0 comments on commit 27122ad

Please sign in to comment.