Skip to content

fix(telemetry): record zero results for empty memory searches - #4975

Open
DivyamTalwar wants to merge 2 commits into
latitude-dev:developmentfrom
DivyamTalwar:fix/memory-zero-search-results
Open

DivyamTalwar wants to merge 2 commits into
latitude-dev:developmentfrom
DivyamTalwar:fix/memory-zero-search-results

Conversation

@DivyamTalwar

@DivyamTalwar DivyamTalwar commented Dec 1, 2026 •

Copy link
Copy Markdown

What does this PR do?

Record a memory search count of zero when the result mapper returns an empty collection. Python and TypeScript previously omitted the count, so a completed search with zero results looked like an unmeasured search. Searches without result data still omit the count, and an explicit count or records remain available.

How was this tested?

  • Reproduced the missing count in both SDKs with real in-memory OpenTelemetry exporters. Both regressions pass with the change.
  • All 145 Python telemetry tests and 251 TypeScript telemetry tests passed. Ruff, Pyright, Biome, TypeScript type checking, and git diff checks passed.
  • Independently checked that a Python mapper returning None still leaves the count unknown and verified compatibility with fix(telemetry): close failed synchronous memory search spans #4974.

AI-assisted implementation and verification.

Checklist

  • Lint, type-checking, and tests pass locally
  • PR title follows Conventional Commits
  • I have signed the CLA

See it in action
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Copilot AI balanced review requested due to automatic review settings December 1, 2026 22:28
@vercel

vercel Bot commented Dec 1, 2026

Copy link
Copy Markdown

@DivyamTalwar is attempting to deploy a commit to the Latitude Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T22:30:13.612125Z 4010436 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

2 participants