Skip to content

docs(agents): add memory span manual instrumentation - #19940

Merged
ArthurKnaus merged 1 commit into
masterfrom
arthurknaus/add-memory-span-manual-instrumentation
Oct 13, 2026
Merged

ArthurKnaus merged 1 commit into
masterfrom
arthurknaus/add-memory-span-manual-instrumentation

Conversation

@ArthurKnaus

@ArthurKnaus ArthurKnaus commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

DESCRIBE YOUR PR

Document the gen_ai.memory.client span in the agent tracing manual instrumentation guides, modeled on the existing evaluation span docs. Follows sentry-conventions#653, which adds the gen_ai memory operations, the memory operation type, and the gen_ai.memory.* attributes.

  • Add a "Memory Span" section to the JavaScript and Python manual instrumentation pages, with a search_memory example and prose covering the other operation names (create_memory, update_memory, upsert_memory, delete_memory, create_memory_store, delete_memory_store)
  • Add a shared memory-span attributes include (store/record identifiers, record count, and the opt-in query/records content)

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.
Select exactly one option. For deadlines, replace YYYY-MM-DD with the due date. You can update this information later by editing the PR description.

  • Urgent deadline (GA date, etc.): YYYY-MM-DD
  • Other deadline: YYYY-MM-DD
  • No deadline: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've supplied a deadline.

Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

Closes TET-3032
Closes TET-3031

Document the gen_ai.memory.client span in the agent tracing manual
instrumentation guides (JavaScript and Python), modeled on the existing
evaluation span docs. Follows sentry-conventions#653, which adds the
gen_ai memory operations, the memory operation type, and the
gen_ai.memory.* attributes.

Adds a shared memory-span attributes include covering the operation
names, store/record identifiers, record count, and the opt-in
query/records content.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@vercel

vercel Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-docs Ready Ready Preview Oct 13, 2026 12:04pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
develop-docs Ignored Ignored Oct 13, 2026 12:04pm UTC

Request Review

@github-actions github-actions Bot added the Priority: Normal Docs review has no urgent deadline label Oct 13, 2026
@codeowner-assignment
codeowner-assignment Bot requested a review from a team October 13, 2026 11:56
@ArthurKnaus
ArthurKnaus requested a review from a team October 13, 2026 12:06
@ArthurKnaus
ArthurKnaus marked this pull request as ready for review October 13, 2026 12:06
@linear-code

linear-code Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

TET-3032

TET-3031

@codeowner-assignment
codeowner-assignment Bot requested a review from a team October 13, 2026 12:06
@cursor

cursor Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

The plan checks loads of the changed guides, client errors on those pages, and page duration. An issue escalates when those pages stop loading or those errors appear.

Rollout complete

Services: sentry-docs.

Plan

What changed

Requests to the Python and JavaScript manual instrumentation guides now include a Memory Span section. That section shows a gen_ai.memory.client example and an attributes table.

sentry-docs must deploy before this content is live. The JavaScript page is common content. It inherits to server-category JavaScript guides.

Risk

A bad MDX change can break render on the Python page and every inherited JavaScript server guide. A missing include returns nothing. The attributes table can then vanish with no error. New code samples can throw in the code-tab UI. These same pages also serve the Evaluation Span section. A render failure hides that existing guide too.

Intended effect

This change only adds documentation. No metric proves the Memory Span heading is on the page. absent looks like the heading missing while page loads continue. Record intended effect as unknown from telemetry.

Regression watch

Watch the pages this diff edits. Traffic is low. Traces use a 0.3 sample rate. A small count swing is noise. A drop to zero is not.

Rerun these Sentry project docs queries in org sentry.

Page loads:
span.op:[pageload,navigation] environment:production url.path:*agent-tracing/manual-instrumentation*

Client errors:
environment:production http.url:*agent-tracing/manual-instrumentation*

Signal Baseline Window Rule Source
Client errors on the changed pages 0 events 2026-10-12T12:07:00Z to 2026-10-13T12:07:00Z Hold at zero. A new error group is a regression. Sentry errors, query above
Client errors on the changed pages 28 events 2026-10-06T12:07:00Z to 2026-10-13T12:07:00Z The week is not zero. Do not treat one Event as a spike if the 24h count stays near 0-4. Sentry errors, query above
Sampled page loads 13 loads, p95 4.5-5.3s 2026-10-12T12:07:00Z to 2026-10-13T12:07:00Z Hold load count above zero. Hold p95 in 4.5-5.3s. A rise above 5.3s that stays there is a regression. Sentry traces, query above
Sampled page loads by path Python 7 loads, p95 1.7s. JavaScript Node 7 loads, p95 5.3s 2026-10-12T12:07:00Z to 2026-10-13T12:07:00Z Hold both paths above zero. The Node path is the slow one. Sentry traces, same query grouped by url.path
Sampled page loads 100 loads, p50 3.4s, p75 4.5s, p95 5.3s 2026-10-06T12:07:00Z to 2026-10-13T12:07:00Z Use this band when the 24h count is too small. Fall to zero is a regression. Sentry traces, query above

If client errors rise, inspect code-tab and Expandable failures on those pages. Also inspect the Evaluation Span block on the same files.

Not observable

The Memory Span heading and attributes table are not in telemetry. A missing include returns null, so that table can vanish with no error. Only the Python page and the JavaScript Node page had page loads in the 24h window. Other inherited JavaScript server guides had no traffic. LCP for these pages did not return. The query timed out.

Get Slack DMs about this change: cursor.com/automations/rollouts

@ArthurKnaus
ArthurKnaus merged commit ef0aacf into master Oct 13, 2026
30 of 32 checks passed
@ArthurKnaus
ArthurKnaus deleted the arthurknaus/add-memory-span-manual-instrumentation branch October 13, 2026 12:50

This branch was successfully deployed

1 active deployment
Preview – sentry-docs — 2b74d000 Deployed Oct 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Normal Docs review has no urgent deadline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants