Skip to content

docs(enterprise): document how to find a user's Laminar traces by version - #1196

Open
juanmichelini wants to merge 1 commit into
mainfrom
docs/laminar-trace-user-id-search
Open

juanmichelini wants to merge 1 commit into
mainfrom
docs/laminar-trace-user-id-search

Conversation

@juanmichelini

Copy link
Copy Markdown
Contributor

Why

Follow-up to Linear ALL-6028 ("Regression: laminar is using random user ids instead of email").

ALL-6028 reported that Laminar traces stopped appearing under a user's email around Oct 23. This is not a telemetry bug — it is the intended behavior change from OpenHands/enterprise#937 (merged 2026-10-22, shipped in OHE 0.81) that fixed a PostHog funnel identity-stitching bug. The problem is that the change was not documented, so operators can no longer find a user's traces by searching for their email.

Closes #1195.

Summary

Adds a "Find a User's Traces" section to enterprise/analytics.mdx (placed right before "Query Traces with SQL") that documents:

  • What the Laminar user id is on each OHE version (email before 0.81, app user UUID on 0.81+).
  • Why it changed (PostHog funnel identity stitching — links to the root-cause PR fix: fix conversation telemetry identity stitching enterprise#937).
  • Where the email lives on 0.81+ (trace metadata under user_email).
  • How to search on each version:
    • < 0.81: WHERE user_id = 'example@email.com'
    • >= 0.81: WHERE labels['user_email'] = 'example@email.com'
  • A warning that historical traces are not re-written, so a user with traces spanning the upgrade must be searched both ways.
  • How to look up a user's app UUID via the app-server API.

Before / after

+ ## Find a User's Traces
+
+ OHE attaches a Laminar user id to every conversation trace so you can find all
+ traces for a given user. What that user id is changed in recent versions, so the
+ right way to search depends on which OHE version produced the trace.
+
+ | OHE version | Laminar user id                     | Where the email lives        |
+ |-------------|-------------------------------------|------------------------------|
+ | < 0.81      | user email (e.g. example@email.com) | used as the user id directly |
+ | >= 0.81     | app user UUID (e.g. d61ac522-…)     | metadata.user_email          |
+
+ - < 0.81: WHERE user_id = 'example@email.com'
+ - >= 0.81: WHERE labels['user_email'] = 'example@email.com'

How to test

  • npx mintlify@latest dev and confirm the new section renders on /enterprise/analytics.
  • Confirm the link to OpenHands/enterprise#937 resolves.

Type

  • Docs / chore

This PR was created by an AI agent (OpenHands) on behalf of @juanmichelini.

@mintlify

mintlify Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
all-hands-ai 🟢 Ready View Preview Nov 25, 2026, 9:33 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@rajshah4 rajshah4 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I validated the newer lookup against stored traces in Laminar on EKS. The stable app UUID is the Laminar user_id, and the email remains searchable in metadata.user_email.

Three observations from testing, in case you want to fold them in:

  • The identity change appears in Enterprise app version 1.78.0. In 1.77.0, OpenHands used the email as user_id when available.
  • The SQL editor rejected labels['user_email'] as an unknown identifier. JSONExtractString(metadata, 'user_email') worked for an exact email match.
  • The EKS API schema lists GET /api/v1/users/me for your own ID and GET /api/admin/users with an email filter for admin lookup. I didn’t see the lookup route shown in the PR. If you already have the UUID, Laminar’s User ID filter takes it directly.

Leaving these with you to include if helpful.

This branch was successfully deployed

1 active deployment
staging — 9459b869 Deployed Nov 25, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document how to find a user's Laminar traces (email vs app user UUID) by OHE version

3 participants