Security and privacy
DevLens is built to record what went wrong without recording who it happened to. This page says exactly what it keeps, what it refuses to keep, and where its limits are.
Three keys, three jobs
| Key | Where it lives | What it can do |
|---|---|---|
Public key pk_… | Browser code. Anyone can see it. | Send browser spans, only from your project's allowed origins. |
Secret key sk_… | Your server's environment only. | Send any spans. Shown once, stored as a hash; replace it from Keys & settings if lost or leaked (the old one stops at once). |
Read token rt_… | Your AI agent's MCP settings. | Read one project's traces. Never writes. Shown once, stored as a hash; replacing it stops the old one at once. |
Because the public key is public, anyone can send browser spans that claim to come from your app. The dashboard labels every span with the key that sent it, and treats browser spans as claims: they never get links to your code.
Your DevLens account
- Log in with email and password, or with GitHub when this dashboard has it set up. GitHub logins use your GitHub account's verified primary email, and join the DevLens account with that email.
- Passwords are stored only as bcrypt hashes. After 5 wrong passwords, an account waits 15 minutes.
- Forgot your password? Forgot password on the login page emails you a link that works once, for one hour. Setting a new password logs out every session. Confirm links work for 24 hours. DevLens stores only a hash of each link, and sends the emails through Resend, which receives your address and the message.
- Confirm your email from the link we send after sign-up. Until you do, logging in with GitHub on the same address removes the account's password and ends its sessions, so nobody can sign up with your address before you and keep access.
- A login lasts 7 days, renewed while you use it. Log out everywhere, on your Account page, ends every session on every device at once: use it after losing a laptop or using a shared computer.
What is never stored
- Request and response bodies, form values, cookies and headers (other than the trace link).
- Database queries and their arguments. A database step keeps only the table and operation, such as
DemoUser.createorINSERT users; with OpenTelemetry, the SQL text it records is dropped on arrival. - URL query strings and fragments:
/api/search?q=aliceis stored as/api/search. - The long form of database errors, which can echo the failing call with its values. Prisma errors keep only the code and the last line, for example
P2002: Unique constraint failed on the constraint: `User_email_key`; OpenTelemetry errors keep only their first line, with quoted values hidden (Duplicate entry '…').
What is stored
For each step: its name, kind, start time, duration, status, error message, source file:line, and a short allowlist of attributes (HTTP method, path and status, database model and operation, commit). Every span is cleaned twice, when it arrives and again when it is exported:
- email addresses, bearer tokens and
password=…,token=…style pairs are replaced with[redacted]; - long text is cut to 500 characters;
- unknown fields are rejected, and unsafe source paths are dropped.
Redaction is best effort and can't recognise every piece of personal data. Use fixed names for actions and spans, never put personal data into error messages, and look at a few exports from your own app before relying on it.
Who can see a trace
Traces belong to the project, and only the project's owner can open them. Someone else's project or trace looks exactly like one that doesn't exist. The AI export is built on the server from your own trace only, and is never cached.
Limits
- Up to 600 spans per minute per project. Beyond that the dashboard answers 429 and the SDKs pause for a minute.
- Up to 1 MiB and 500 spans per request.
- Agents (read tokens) can make up to 60 requests per minute per project.
These are conservative defaults for a student project, not a measured production capacity. Retention, key rotation and abuse controls for wider use are not built yet.
Your app comes first
The DevLens SDKs are written so that telemetry can never break your app: every piece runs inside error handling, sending happens in the background and is never awaited by your code, and memory is capped (500 spans or 1 MiB waiting to send). OpenTelemetry's exporters work the same way, in the background with bounded queues. If the dashboard is down, steps are dropped and your app behaves exactly as before.