Correlation Runtime Controls

Tune internals of cross-platform correlation matching, sweeps, and metrics naming.

Execution Toggle

ExecuteOriginalScenarioRun controls whether the original scenario run delegate executes alongside tracking runtime in wrapped scenarios.

Timeout Sweep Settings

TimeoutSweepInterval controls how often timeout scans run, and TimeoutBatchSize controls how many pending items are processed per sweep cycle. Public SDK helpers also expose sweepTimeoutEntries(...) for detailed timeout batches and preserve FIFO matching across repeated tracking ids. Time durations must be positive when set through endpoint/config contracts.

Metric Prefix

MetricPrefix controls the naming prefix of tracking counters and gauges written to the Metrics report section and realtime sinks.

Store TTL

When using Redis correlation store, RedisCorrelationStoreOptions.EntryTtl controls retention duration of correlation entries.

Feature Usage Samples

How to use snippets for Correlation Runtime Controls.

Switch between C#, Java, Python, TypeScript, and JavaScript to see the native SDK shape for this sample.

Licensing note: every runnable sample requires a valid runner key via WithRunnerKey("...") or config key LoadStrike:RunnerKey.

Runtime Controls

var tracking = new CrossPlatformTrackingConfiguration
{
    Source = source,
    Destination = destination,
    RunMode = TrackingRunMode.GenerateAndCorrelate,
    CorrelationTimeout = TimeSpan.FromSeconds(15),
    TimeoutSweepInterval = TimeSpan.FromMilliseconds(250),
    TimeoutBatchSize = 200,
    TimeoutCountsAsFailure = true,
    MetricPrefix = "orders_tracking",
    CorrelationStore = CorrelationStoreConfiguration.RedisStore(new RedisCorrelationStoreOptions
    {
        ConnectionString = "localhost:6379",
        KeyPrefix = "loadstrike:orders",
        EntryTtl = TimeSpan.FromMinutes(5)
    })
};

Controls

CorrelationTimeout

Defines how long a source event can wait for a destination match before it is treated as timed out.

TimeoutSweepInterval

Controls how often the runtime scans pending correlation entries for expired matches.

TimeoutBatchSize

Limits how many expired correlation entries are processed in one timeout sweep.

TimeoutCountsAsFailure

Decides whether timed-out matches should increment failure counts in stats and reports.

MetricPrefix

Prefixes the correlation counters and gauges that show up in metrics and sink projections.

Explicit timeout and poll values must be positive whenever they are set directly.