Skip to content

Expose plugin-hold recovery to privacy guards - #292

Closed
Hesham Salman (Iron-Ham) wants to merge 1 commit into
braintrustdata:mainfrom
Iron-Ham:iron-ham/discard-sensitive-trace-sessions
Closed

Hesham Salman (Iron-Ham) wants to merge 1 commit into
braintrustdata:mainfrom
Iron-Ham:iron-ham/discard-sensitive-trace-sessions

Conversation

@Iron-Ham

Copy link
Copy Markdown

Summary

[written by omp] Expose durable plugin-hold recovery to span transforms. A privacy guard can use the existing StopTracingError to permanently stop a previously held session route before relaxed filtering rules replay content that was held by an older plugin.

The recovery signal comes from structured route failure state, not exception text. Ordinary plugin errors remain fail-closed, and stopping one route does not stop independent routes or future sessions. A guard using this migration signal conservatively discards prior plugin-error and timeout holds; already delivered spans and native agent transcripts are not removed.

Verification

  • cargo test --locked --lib pipeline::: 61 passed.
  • cargo test --locked --lib span_processor::: 8 passed.
  • Standalone CLI build and library Clippy passed.
  • Isolated real-daemon smoke: create a legacy plugin hold, replace the plugin with a recovery-aware guard, observe pending operations fall from 2 to 0, then restart the daemon. The stopped session never exports later content; independent and new sessions continue delivering.

Integration

This needs a bt release embedding the updated runtime before downstream integrations can use the recovery context. Existing StopTracingError behavior is reused rather than adding a second discard API.

Preserve structured hold history across retry and restart.
Let guards use StopTracingError before relaxing privacy rules.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant