Skip to main content
With --mask, the server replaces private data in every span and score before it is stored. No file of the store holds the original text, and no search finds it. It is off by default.
mask-test tries a policy on a text and stores nothing. Then start the server with it:
send-trace.sh puts the text into two spans (the agent run and the model call): two matches of email, and the address is found by no search.
  • Built-in rules: email, credit_card (with the Luhn check), ipv4, phone (only numbers that start with +), secret (key shapes such as sk-..., AWS key ids, GitHub and Slack tokens, JWTs, Bearer ..., PEM keys). Each is narrow on purpose. None finds names of people. A pattern is a regex of the Rust regex crate.
  • A wrong policy stops the start, with the name of the rule. A write never fails because of the policy.
  • GET /v1/mask gives counts only. It gives no value.
  • What each rule does not find, and the other limits: Server reference, “Masking”.
Masked: input, output, error, every text value in attributes and events, and the label and comment of a score. Not masked: ids (also userId and sessionId), name, kind, model, service, environment, tags, attribute keys, numbers. Do not put private data there.
A new policy changes new writes only. For old data, use the deletes.