Skip to content
Preptima
mediumConceptDesignScenarioMidSeniorStaff

How do you handle personal data in prompts, logs and traces for an LLM feature?

5 min readUpdated 2026-08-15

Answer

Short answer

Decide what may cross the provider boundary and redact before it does, checking the provider's retention and training-use terms rather than assuming them. Then treat the debugging trace as a second copy of user data, with its own retention, access control and deletion obligations.

Was this answer helpful?

Likely follow-ups

  • A user exercises their right to erasure. Which systems must you touch, and which can you not?
  • How would you debug a bad answer when the trace no longer holds the prompt?
  • Your redaction regex misses an identifier format used by one customer. How would you have caught it?
  • When is a zero-retention or self-hosted deployment the only acceptable answer?

Related questions

Masterclass guide

Further reading