Filtering on metadata and on output key both are not working

I have this metadata on the trace

but when I search by this metadata key it finds zero traces or runs. also when I literally click on the value so the query is generated by langsmith is still doesn’t work.

queries:

and(eq(metadata_key, “suggested_email_id”), eq(metadata_value, 137652))
----
and(eq(metadata_key, “suggested_email_id”), eq(metadata_value, 137652), eq(is_root, true))

I have a similar issue when searching by output key, the output key is an object so the trace returns

{
    "action": "generate_draft",
    "draft": {
        "subject": "x",
        "date": "2026-03-09T17:32:44.351Z",
        "body": "<html><body><p>hi</p></body></html>",
        "wordCount": 110,
        "sessionId": "d778d06b-fd38-41ec-b501-1da877bdfb11",
        "metadata": {
            "tone": "professional",
        },
        "id": 137652,
        "createdAt": "2026-03-09T17:32:44.416Z",
        "updatedAt": "2026-03-09T17:32:44.416Z"
    },
}

I have tried and(eq(output_key, “draft.id”), eq(output_value, 137652), eq(is_root, true))

and and(eq(output_key, “draft”), like(output_value, “%137652%”), eq(is_root, true))

@hesamzkr Could you manually check once to see if a trace with the given metadata exists? This happened to me once, the trace was never sent to LangSmith, and I couldn’t find it when searching using a specific metadata attribute. I know it sounds simple, but I’ve encountered this issue before. Just curious if you’ve already tried locating it manually.

the screenshot at the top is from a trace’s metadata I clicked on the trace an in the metadata section it was showing the id so I believe it’s tracked. any other things to look out for?

Nope, if you are able to see the traces associated with the given metadata, then you’re good. If it helps, you can mark the above response as the solution and close this thread.

Thank you but well but it’s not solved since I can see but the filtering doesn’t work in langsmith and it’s very difficult to be able to see traces of agents without the filtering working

@hesamzkr Can I recommend that you do a isolated call in a new `LANGCHAIN_PROJECT` with the given metadata filters and see if filters are working as per your expectation in the new project?