Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk6 min

How to Secure LangGraph Trace Data and Redact Sensitive Inputs

LangSmith masking can reduce sensitive data in traces, but it does not redact model prompts or control every persistence path. Here’s how to choose and verify the right protection.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To reduce sensitive data in LangGraph traces, configure LangSmith to hide or transform inputs, outputs, and metadata before traces are sent. If a request must not be recorded, conditionally disable tracing for it instead. These controls protect the trace data path; they do not, by themselves, redact what the model receives or stop other systems from storing graph state, application logs, or provider-side data.

Understand what a LangGraph trace can contain

LangSmith records work as runs—such as model calls, tool invocations, and retrieval operations—and groups related runs into a trace. LangChain’s observability documentation says runs include their full inputs and outputs and that one trace can contain up to 25,000 runs. A sensitive value can therefore appear beyond the top-level user prompt: inspect nested tool arguments, retrieved content, model responses, errors, and custom state representations.

Before choosing a control, separate the data paths you need to govern:

  • Trace export: inputs, outputs, and metadata sent by the tracing client to LangSmith.
  • Model input: the prompt and other data passed to the model.
  • Graph persistence: checkpointed execution state and other server resources.
  • Other retention: application logs and any data retained by model providers or other integrations.

LangSmith masking operates on the trace-export path. It should not be treated as prompt redaction or as a control over every other storage location.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Magicmoon 2-Pack 24 Inch Computer Privacy Screen Filter for 16:9 Monitor
  • Compatible Model(s): Magicmoon brand filter only for 24 inch -diagonally measured - widescreen monitor - aspect ratio 16:9 - filter size: width: 20 15/16", Height: 11 13/16" (531mm x 298mm)
  • Superior Privacy: The computer privacy filter makes the screen appear dark when looking at it from an angle (the angle is about 30 to 60 degree), but bright when looking directly at it. To change the privacy level - simply adjust your monitor’s brightness accordingly
  • Eye and Screen Protection: Privacy Filter does not only protect your private life but also protects your eyes by blocking 30% of blue light , blocking the harmful blue light between 380 to 495 nm, it filters out the blue light and relieves eye strain
  • Perfect For Open Workspaces: Great for maintaining screen privacy in open work spaces
  • Includes Two Options: Option 1 uses clear adhesive strips that securely attach to any computer screen. Option 2 (for computer screens with a raised bezel only) uses slide mount tabs that easily stick to the display frame, allowing you to slide the privacy screen filter on and off as needed

Choose the right trace-protection control

LangSmith documents controls for hiding complete inputs or outputs, transforming selected fields, filtering metadata, and suppressing tracing conditionally. The right choice depends on whether you need debugging detail, reduced exposure, or no trace for a particular request.

Control What it does When it fits Important limit
Hide inputs or outputs Removes the selected payload from traces; callbacks can also return an empty object or a transformed safe subset. Use when broad data minimization matters more than inspecting the original payload. Inputs and outputs are separate controls. Configure each deliberately.
Filter or transform metadata Removes metadata with hide_metadata=True or applies a callable to select or transform it. Use when tags, identifiers, or custom fields may contain sensitive values. Metadata needs its own policy; hiding inputs and outputs does not automatically establish one.
SDK anonymizer Applies regex patterns and replacement values or a custom function; documented examples include email and UUID substitutions. Use when you want to preserve a transformed trace for debugging. Patterns and example implementations are not complete guarantees. Validate against your data.
Third-party anonymization The guide documents integrations using Microsoft Presidio and Amazon Comprehend. Consider when a detector-based approach better fits the data and operational model. External detection changes the data flow and can add latency, cost, and service limits.
Conditional tracing Prevents a trace from being sent for selected requests. Use when policy requires that a request not be traced at all. It suppresses LangSmith tracing for that request; it does not disable other logging or persistence systems.

LangChain’s guide to preventing sensitive data from being logged in traces documents environment variables LANGSMITH_HIDE_INPUTS=true and LANGSMITH_HIDE_OUTPUTS=true, plus per-client callbacks: hide_inputs and hide_outputs in Python, and hideInputs and hideOutputs in TypeScript. A function decorated with @traceable can use process_inputs and process_outputs to log a transformed representation for that function. When function-level processors and client-level input/output processors are both defined, the function-level processors take precedence.

Rank #2
[2 Pack] 24 Inch Computer Privacy Screen Filter for 16:9 Widescreen Monitor
  • 【24 PRIVACY FILTER DIMENSIONS】 Width: 20 15/16" (20.9 inches/532 mm), Height: 11 13/16" (11.8 inches/299 mm) - 16:9 Aspect Ratio. Mamol computer privacy filters are designed to be perfectly compatible with HP, Samsung, Dell, Lenovo, Acer, Asus, LG, ViewSonic and other brands of monitors. Please check the width and height dimensions of your computer screen before ordering. If you have any questions about the dimensions, please contact us.
  • 【ENHANCED PRIVACY PROTECTION】Mamol 24 inch computer privacy filter keeps your electronic information confidential, making it excellent for use in high traffic areas. the computer privacy screen 24 inch is designed with advanced microlouver technology to block visibility at around 30 degrees and black out screens completely near 60 degrees.
  • 【EYES PROTECTION】 This blackout privacy screen greatly reduces eye strain and minimizes potential hazards to vision. It filters 99.9% of UV rays and suppresses 98% of blue light. As a reversible 24-inch privacy screen filter: The glossy side of the protector provides extra clarity and greater privacy, and the matte side minimizes glare and distracting reflections. Satisfy your different daily uses as needed.
  • 【BETTER HD CLARTIY】Mamol 24 inch computer privacy screen Shield adds an extra layer of AR Ultra HD light transmission compared to others. It maintains the high definition of the screen without sacrificing too much screen brightness. It won't reduce the brightness and cause eye fatigue because of the privacy screen installed on the screen.
  • 【ANTI SCRATCH & WASHABLE 】Our privacy anti-glare Monitor film has a surface enhancement layer to protect the privacy filter from scratches and fingerprints. It is washable and reusable. Even after prolonged use, you will get a brand new privacy screen for your desktop computer monitor after cleaning. Very Durable!

Apply separate policies to inputs, outputs, and metadata

Inventory where sensitive data can occur before configuring callbacks. A user message may contain personal information, but so may a tool result, retrieved document, model response, exception, or custom field. Decide which fields must disappear, which can be safely transformed, and which are acceptable to retain. Treat metadata as a separate data class rather than assuming payload controls cover it.

LangSmith supports hide-all behavior as well as callbacks that return only a safe subset. This lets a team retain useful, deliberately selected debugging context without exporting the full payload. Use the narrowest safe representation that still answers the operational question your traces need to answer.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
NEW'C for iPhone 15 Pro Max Privacy Screen Protector, Tool Included
  • Warning: Not compatible with iPhone 15.15 Pro, iPhone 15 Plus
  • Contents: 3 x Anti-Spy Tempered Glass Screen Protectors for iPhone 15 Pro Max (6.7 Inches) and an easy installation tool. The anti-spy screen protector can protect the privacy of the data on the screen. Reduces viewing angle to avoid prying eyes, keeping confidential information out of sight of third parties.
  • The privacy screen protector can protect the data on the screen. Reduces viewing angle to avoid prying eyes, keeping confidential information away from third party sight.
  • Provides an additional layer of privacy protection: Advanced privacy filter blocks viewing from any angle above 28° to keep what's on your iPhone 15 Pro Max (6.7 inch) screen just for your eyes.
  • Ideal anti-break solution: extremely high hardness, protects the screen of your phone from accidental bumps and damage. Dust-free, fingerprint-free, push button installation, too easy, bubble-free.

For selective anonymization, the LangSmith SDK supports regex-and-replacement rules or a custom function. The documentation also describes Microsoft Presidio and Amazon Comprehend examples. A detector service is not automatically safer: assess what text is sent to that service, its operational limits, and the resulting latency and throughput impact in your own environment.

Know the limits of masking and anonymization

The official masking guide warns that its regex example is not exhaustive and may miss formats or edge cases. A pattern that matches a conventional email or credit-card number may fail on localized formats, obfuscated text, unusual encodings, secrets nested in objects, or a custom state structure.

Rank #4
TOCOL for iPhone 17 Pro Max Privacy Screen Protector
  • 25° Anti-Spy Privacy Screen : Our industry-leading 25° narrow-bezel privacy technology ensures your screen is only visible to you directly in front. Anyone looking from the side will see a dark, blank screen, effectively preventing others from snooping on your sensitive personal information, messages, and financial transactions.
  • Revolutionary Innovative Auto Installation : This Screen Protector Just design for iPhone 17 Pro Max. Features auto-align positioning with dust removal and instant adhesion technology. Just place, press and pull - installs perfectly in seconds. Delivers an unprecedented screen protector installation experience for you. At the same time Removal is hassle-free, and will not damage your screen.
  • Military-Grade 9H+ Hardness, Life-Ready for Everything : Triple ion-exchange technology delivers superior drop and impact protection. Withstands 8FT drops and 16,000 scratches. Protects against keys, coins, and accidental drops.No matter if you're rushing to work or exploring new places on vacation, you can use your device worry-free.
  • Silky Smooth Anti-Fingerprint Nano-Coating : TOCOL's exclusive nano-coating delivers an ultra-smooth, silk-like surface. Experience seamless fingerprint unlock and lightning-fast gaming swipes. Rounded edge design ensures a soft, comfortable feel with no sharp corners. Advanced water/oil repellent coating resists fingerprints and smudges for a pristine screen all day.
  • TOCOL 365 day Warranty & After-Sales Service : We stand behind the quality of our products. If you encounter any issues with your screen protector, such as bubbles, peeling, scratches, or installation problems, Our professional customer service team will respond within 24 hours.
  • The SDK anonymizer traverses to a default maximum depth of 10 nesting levels. Check data deeper than that and test non-string values deliberately.
  • The anonymizer serializes payloads to JSON before processing. Large payloads or complex regular expressions can add overhead; the documentation does not provide a performance benchmark for your application.
  • The documented Amazon Comprehend example makes one PII-detection API call per string, so it may become rate-limit-bound. The example uses a 100 KB per-call text limit and leaves oversized text unchanged; it is explicitly not exhaustive.
  • Regex and detector-based approaches should not be described as guaranteeing complete PII removal. Measure their behavior against representative data and account for cases they do not detect.

The same guide lists rule-based masking as available in LangSmith SDK Python 0.1.81 and above and TypeScript 0.1.33 and above; function-level process_outputs is listed for Python SDK 0.1.98 and above. These are documentation-stated version floors, not independent compatibility tests. Check the current guide when selecting or upgrading an SDK.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Disable tracing when a request must not be recorded

Masking changes what a trace contains; it still permits a trace to be sent. For a strict no-trace requirement, use conditional tracing, as LangSmith’s guide recommends, rather than treating redaction as equivalent to non-collection.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
NEW'C for iPhone 15 Pro Privacy Screen Protector Installation Tool Included
  • WARNING: Not compatible with iPhone 16, iPhone 16 Plus, iPhone 16 Pro Max
  • Content: 3 Tempered Glass Privacy Screen Protectors for iPhone 15 Pro (6.3 inches) and an easy installation tool. The privacy screen protector can protect the confidentiality of the data on the screen. It reduces the viewing angle to prevent prying eyes, keeping confidential information out of sight from third parties.
  • The privacy screen protector can protect the data on the screen. It reduces the viewing angle to prevent prying eyes, keeping confidential information out of sight from third parties.
  • Provides an additional layer of privacy protection: the advanced privacy filter blocks viewing from any angle greater than 28° to keep what’s on your iPhone 15 Pro screen for your eyes only.
  • An ideal anti-break solution: Extremely high hardness, protects the phone screen from shocks and accidental damage. Dust-free, no fingerprints, a push-button,installation too easy, bubble-free.

Enforce the decision where the request is handled, and verify that the condition cannot be bypassed by a client configuration or a tracing decorator that was omitted or configured differently. A LangSmith tracing decision is only one part of a retention policy: review application logs, checkpoints, server resources, and model-provider paths separately.

Account for Agent Server destinations and persisted state

For LangGraph Agent Server, the available trace destination depends on deployment mode. According to LangChain’s deployment architecture documentation, Cloud requires tracing to LangSmith SaaS. Hybrid and Self-Hosted deployments offer optional tracing and additional destination choices, including Self-Hosted LangSmith for Self-Hosted deployments.

Tracing and graph-state persistence are distinct. LangChain’s data-plane documentation says PostgreSQL stores server resources, including runs, and is the default checkpoint backend for graph execution state. MongoDB can be used as an alternative for checkpoint storage, while PostgreSQL remains required for other server resources. Review checkpoint and data-plane retention separately from trace masking; changing what is exported in a trace does not establish what is retained in persisted graph state.

Redact model inputs upstream when needed

If the goal is to prevent the model from receiving certain sensitive values, use an upstream input-protection control in addition to trace controls. Arcjet’s documented LangChain JavaScript integration wraps an LLM, redacts selected entities from prompt text before it is sent to that LLM, then unredacts the response before returning it. Its examples list email, phone number, IP address, and credit card entities, along with custom detection and replacement hooks.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

This is a different point in the flow from LangSmith masking: upstream redaction changes what reaches the model, while LangSmith controls what the tracing client sends to the tracing backend. Confirm the integration’s current behavior and fit for your language and threat model; it does not replace trace controls.

Quick Recap

Bestseller No. 1
Magicmoon 2-Pack 24 Inch Computer Privacy Screen Filter for 16:9 Monitor
Magicmoon 2-Pack 24 Inch Computer Privacy Screen Filter for 16:9 Monitor
Perfect For Open Workspaces: Great for maintaining screen privacy in open work spaces
$36.99
Bestseller No. 3
NEW'C for iPhone 15 Pro Max Privacy Screen Protector, Tool Included
NEW'C for iPhone 15 Pro Max Privacy Screen Protector, Tool Included
Warning: Not compatible with iPhone 15.15 Pro, iPhone 15 Plus
$7.98
Bestseller No. 5
NEW'C for iPhone 15 Pro Privacy Screen Protector Installation Tool Included
NEW'C for iPhone 15 Pro Privacy Screen Protector Installation Tool Included
WARNING: Not compatible with iPhone 16, iPhone 16 Plus, iPhone 16 Pro Max
$7.98

Roll out and verify the policy

  1. Map data paths. Identify trace-producing runs, sensitive inputs and outputs, metadata, tool and retrieval payloads, errors, model calls, checkpoint storage, and application logs.
  2. Set retention requirements by data class. Decide what must be hidden, what can be transformed into a safe subset, what metadata can remain, and which requests must not be traced.
  3. Configure controls at the appropriate layer. Set input, output, and metadata policies on tracing clients; use function-level processors where suitable; use conditional tracing for requests that must not be collected.
  4. Test with representative synthetic or approved data. Assert that known sensitive markers are absent from every emitted trace field, including nested tool inputs, outputs, metadata, and error paths. Test relevant nesting depths and formats.
  5. Test failure and omission paths. Check behavior when a client or decorator lacks the protection, and verify that high-risk requests are suppressed at the point they are handled.
  6. Measure operational impact. Assess latency and throughput in your own environment, especially before adopting complex regex processing or a per-string external detection service.
  7. Review other retention systems. Confirm separately how checkpoints, server resources, application logs, and provider integrations retain data.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. Shenzhen desk3 min
    HONOR Expands Beyond Smartphones With Humanoid Robot RevealHONOR said it unveiled its first humanoid robot at MWC 2026 and named shopping assistance, workplace inspections, and supportive companionship as intended uses. Later Robotics D1 claims and a reported…
  2. Cupertino desk5 min
    Apple Unveils AirPods Max 2: The Upgrade That Should Have Happened Years AgoAirPods Max 2 adds H2-powered audio features and Apple claims up to 1.5× more effective ANC, but its design, Smart Case, and 20-hour battery rating are unchanged. Wired lossless audio…
  3. Cupertino desk4 min
    Apple’s OLED Touch MacBooks Are Coming—but the Dynamic Island Is the Real GambleApple has not announced an OLED touchscreen MacBook, but reports point to high-end models arriving in late 2026 or early 2027. The reported Mac Dynamic Island could be useful, but…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.