Add promptTypes to summarizedConversationHistory telemetry#311790
Merged
Add promptTypes to summarizedConversationHistory telemetry#311790
Conversation
d5696d0 to
f9b18ce
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends Copilot’s summarization telemetry by adding a promptTypes property to summarizedConversationHistory events so prompt structure can be correlated with server-side prompt cache hit rates (similar to existing panel.request telemetry).
Changes:
- Add
promptTypescomputation and emission forsummarizedConversationHistoryon successful summarization in the standard summarizer flow. - Add
promptTypesemission for the background inline summarization success telemetry path.
Show a summary per file
| File | Description |
|---|---|
| extensions/copilot/src/extension/prompts/node/agent/summarizedConversationHistory.tsx | Captures rendered summarization messages and emits promptTypes on success in summarizedConversationHistory telemetry. |
| extensions/copilot/src/extension/intents/node/agentIntent.ts | Emits promptTypes for the background inline summarization success path to match standard summarizer telemetry. |
Copilot's findings
Comments suppressed due to low confidence (1)
extensions/copilot/src/extension/prompts/node/agent/summarizedConversationHistory.tsx:841
- The
promptTypesformat in this event includes an optional-<name>segment (e.g.tool-myTool:123) when messages have aname, but the GDPR comment/example only mentionsrole:charCount. Update the comment to reflect the actual emitted format so downstream consumers don’t mis-parse it.
"promptTypes": { "classification": "SystemMetaData", "purpose": "FeatureInsight", "comment": "Role and character count of each prompt message in order, as a proxy for cache hit rate (e.g. system:1234,user:567)." },
- Files reviewed: 2/2 changed files
- Comments generated: 2
Contributor
42a744d to
3b4f7d9
Compare
3b4f7d9 to
7512eb7
Compare
roblourens
approved these changes
Apr 21, 2026
Adds a promptTypes property to summarizedConversationHistory telemetry events, mirroring the same property already on panel.request events. This is a comma-separated string of role:charCount entries (e.g. system:1234,user:567) representing each message in the summarization request in order. This helps correlate cache hit rates with prompt structure divergence across summarization calls, giving visibility into where prompts diverged from the previous request. Changes: - summarizedConversationHistory.tsx: added promptTypes to sendSummarizationTelemetry using post-transformation messages (after strip operations) - agentIntent.ts: added promptTypes to inline summarization success telemetry
7512eb7 to
cd4290e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
promptTypesproperty tosummarizedConversationHistorytelemetry events, mirroring the same property already onpanel.requestevents.