fix(management): FlowDebugRunner trace sinks use the collector's low-priority lane for ScriptLog rows (build fix after Task 2's Add(lowPriority:))
This commit is contained in:
@@ -152,7 +152,9 @@ public sealed class FlowDebugRunner
|
||||
// only known once the script runs. So the operator's scope is pushed into the
|
||||
// RouteHelper and enforced at route time, before any site traffic.
|
||||
var scope = await ResolvePermittedSiteIdentifiersAsync(sp, user, ct).ConfigureAwait(false);
|
||||
var route = sp.GetRequiredService<RouteHelper>().WithTraceSink(collector.Add).WithSiteScope(scope);
|
||||
var route = sp.GetRequiredService<RouteHelper>().WithTraceSink(evt => collector.Add(evt, lowPriority: FlowStepProjector.IsLogLine(evt))).WithSiteScope(scope);
|
||||
// Step-logs D7: a ScriptLog row rides the collector's low-priority lane so the step rows
|
||||
// emitted at run end are never crowded out of the inline copy (Replay stays complete).
|
||||
var executor = sp.GetRequiredService<InboundScriptExecutor>();
|
||||
|
||||
InboundScriptResult result;
|
||||
@@ -358,7 +360,7 @@ public sealed class FlowDebugRunner
|
||||
{
|
||||
try
|
||||
{
|
||||
collector.Add(e);
|
||||
collector.Add(e, lowPriority: FlowStepProjector.IsLogLine(e));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user