Skip to content

Commit 2b4f7c1

Browse files
committed
feat(core): Add isolateTrace option to MonitorConfig
Add optional isolateTrace boolean property to MonitorConfig interface to allow creating separate traces for each withMonitor execution.
1 parent 85b5b9d commit 2b4f7c1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/core/src/types-hoist/checkin.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,9 @@ export interface MonitorConfig {
105105
failureIssueThreshold?: SerializedMonitorConfig['failure_issue_threshold'];
106106
/** How many consecutive OK check-ins it takes to resolve an issue. */
107107
recoveryThreshold?: SerializedMonitorConfig['recovery_threshold'];
108+
/**
109+
* If set to true, creates a new trace for the monitor callback instead of continuing the current trace.
110+
* This allows distinguishing between different cron job executions.
111+
*/
112+
isolateTrace?: boolean;
108113
}

0 commit comments

Comments
 (0)