This feature is in preview. The API may change before general availability. To try it out, contact support@intunedhq.com and we’ll enable it for your workspace.
Pausing tracing is narrower than turning tracing off.
saveTrace discards the trace for a whole Run, which also removes the trace you need to debug the other 99% of the automation. Pause when you only need a gap.Available helpers
tracing_paused— Async context manager that pauses tracing for a blockpause_tracing— Pause tracing until it is resumedresume_tracing— Resume tracing
Function reference
tracing_paused
async with block and resumes it on exit. Tracing resumes even if the block raises, so a failure in the middle of a sensitive step can’t leave the rest of the attempt unrecorded.
Prefer this form. Reach for pause_tracing only when the sensitive work spans function boundaries—for example, pausing in a hook and resuming in your automation.
The TypeScript SDK exposes this as
withTracingPaused(callback) instead, so it reads naturally in each language.pause_tracing
resume_tracing is called. Calling it while tracing is already paused does nothing.
Returns
Returns None.
Example
resume_tracing
None.
What pausing covers
While tracing is paused:- Browser trace — No actions, DOM snapshots, or network requests are recorded. The trace viewer shows a gap.
- Screenshots — No screenshots are captured, including the ones taken automatically around actions.
- Automation logs — Anything your code writes to stdout or stderr is dropped rather than stored on the attempt.
- The Run and Attempt records themselves—status, timing, and retry history.
- Your automation’s return value, and the Run’s
parameters. Tracing has no effect on either. To keep a value out of the Run record entirely, use ephemeral parameters. - Errors. A raised exception’s message and traceback are still stored on the attempt, even if it was raised while tracing was paused.
Behavior notes
- Nesting works. Nested
tracing_pausedblocks are safe; tracing resumes when the outermost block exits. - Scope is the attempt. Tracing state resets at the start of every attempt, so a retry always begins with tracing active.
- Local development included. The helpers behave the same under
intuned dev, so a locally captured trace has the same gaps a deployed one would. - Ephemeral parameters pause automatically.
get_ephemeral_parameterpauses tracing on your behalf before it returns a value.
Related
- Ephemeral parameters — Pass secrets to a Run without storing them.
- Monitoring and traces — How traces and attempt logs are captured and viewed.
- Intuned.json reference —
saveTracedefaults for dev and deployed runs.