Repository navigation
docs(agents): add memory span manual instrumentation - #19940
Conversation
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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
|
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. Services: PlanWhat changedRequests to the Python and JavaScript manual instrumentation guides now include a Memory Span section. That section shows a
RiskA 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 effectThis change only adds documentation. No metric proves the Memory Span heading is on the page. Regression watchWatch 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 Page loads: Client errors:
If client errors rise, inspect code-tab and Expandable failures on those pages. Also inspect the Evaluation Span block on the same files. Not observableThe 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 |
DESCRIBE YOUR PR
Document the
gen_ai.memory.clientspan in the agent tracing manual instrumentation guides, modeled on the existing evaluation span docs. Follows sentry-conventions#653, which adds thegen_aimemory operations, thememoryoperation type, and thegen_ai.memory.*attributes.search_memoryexample and prose covering the other operation names (create_memory,update_memory,upsert_memory,delete_memory,create_memory_store,delete_memory_store)memory-spanattributes 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-DDwith the due date. You can update this information later by editing the PR description.SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes:
Closes TET-3032
Closes TET-3031