Feature description
Add bounded tracing for Memory search, reranking, and context preparation.
Problem and proposed solution
search_memory and prepare_context currently expose only the outer application span. Add enough detail to show which read stage ran, how many candidates were handled, and where latency or failure occurred.
Possible trace structure:
powercontext search_memory
└── memory.search
├── embeddings <model>
└── memory.rerank
└── invoke_agent memory_rerank
powercontext prepare_context
├── memory.search
├── experience.search
└── context.prepare
Do not record queries, prompts, Memory content, or vectors.
The PR should include an exported span tree or dashboard screenshot.
Alternatives considered
Keep the existing application span only.
Additional context
Part of #1214. Tracing remains optional and must not change Runtime behavior.
Feature description
Add bounded tracing for Memory search, reranking, and context preparation.
Problem and proposed solution
search_memoryandprepare_contextcurrently expose only the outer application span. Add enough detail to show which read stage ran, how many candidates were handled, and where latency or failure occurred.Possible trace structure:
Do not record queries, prompts, Memory content, or vectors.
The PR should include an exported span tree or dashboard screenshot.
Alternatives considered
Keep the existing application span only.
Additional context
Part of #1214. Tracing remains optional and must not change Runtime behavior.