A trace explains where a request slowed down. It can also carry a URL parameter, personal identifier or content nobody intended to retain. Observability therefore needs a collection contract, not merely an export destination.
OpenTelemetry documents sensitive-data handling and filtering or transformation options. This practical article, checked on October 29, 2026, focuses on trace attributes and export rather than the wording of log messages.
Inventory fields before adding a filter
Start with a synthetic request and inspect what your installed instrumentation actually produces. Field names and presence may differ between libraries and versions.
Classify information by purpose. Operation, status and duration serve a different need from a complete URL or form contents. A diagnostic identifier should not be a repurposed session token.
Use an explicit allowlist for each use case. That makes review more concrete than a broad promise that data will somehow be anonymised.
Ask who needs each field as well. A field useful to one investigation does not automatically belong in every routine export.
Work close to emission
Not collecting a value reduces the number of places where it can circulate. Where possible, change source instrumentation before relying solely on later processing.
A Collector can provide a second boundary before export. However, inspect access permissions, queues and diagnostic outputs that exist before that boundary too.
A filter in a search interface does not prove the underlying value disappeared from storage. Identify remaining copies, including exports and backups.
The distinction matters during incidents: hiding a field on screen may protect a casual viewer while leaving the original available to another integration.
Choose a transformation for its purpose
Deleting, replacing and hashing a value do not produce equivalent results. Document the question each field answers, then choose the least intrusive representation that is sufficient.
Hashing a small set of predictable values does not automatically make them unrecoverable. Pseudonymised data can also continue linking several events to a person.
For URLs, investigate whether a structured operation route provides enough diagnostic context. That may remove the need to keep personal query parameters nobody uses.
Test a marker rather than a genuine secret
Insert a clearly identifiable fictional string into an authorised test scenario. Verify its absence after processing and in the pipeline's own diagnostic logs.
Repeat for an HTTP failure, exception and asynchronous operation. A successful request does not exercise every instrumentation branch.
Finally, check that useful correlation and measurements still work. The objective is neither keeping everything nor silencing the system: retain enough context to investigate without building a parallel copy of user information.
Include this check when instrumentation changes. An automatic library update can introduce an attribute without changing business code, which is enough to alter the collection boundary.
Keep a short record of the tested paths and expected exclusions so the next review can compare actual behaviour instead of assuming an old filter still covers everything.
Cover visual: generated editorial illustration, not an official screenshot.




Join the discussion
Comments
Loading comments…