You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Agent analytics: measure privacy-safe MCP adoption and outcomes #201
The implementation for this issue has been completed in draft PR #204.
Delivered Scope: Privacy-safe MCP telemetry measuring search patterns and user flows without gathering sensitive developer PII or keys.
Validation: Tracking verified and checked against security/privacy guidelines.
This should be connected to the new contribution outcome tracking work in # ($(.Title)) so we can compare mission preview activity to public contribution outcomes in a privacy-safe aggregate funnel.
A proposal for the two open pieces here (dashboard queries and retention policy), built on the devglobe_mcp events that #204 already emits. No new fields are needed except where noted.
1. Funnel per caller-day
callerHash rotates daily, so a funnel can only be built within a day. That's the right privacy trade, and it also sets the limits on what the dashboard can claim (see caveats).
Activation (share of initialized callers that make at least one successful tool call) is the number I'd put at the top. Connecting and never calling a tool usually means setup friction or tool descriptions that didn't match the user's intent.
2. Zero-result rate: discovery quality
For a discovery product, a successful call that returns nothing is a quiet failure that the success rate hides.
ContainerAppConsoleLogs_CL
| where TimeGenerated > ago(7d)
| extend M = parse_json(Log_s)
| where M.event == "devglobe_mcp"and M.outcome == "error"
| summarize Errors = count() by ErrorCode = tostring(M.errorCode), Tool = tostring(M.tool), Client = tostring(M.client)
| orderby Errors desc
authentication_required on request_introduction is the one to watch. It's the drop-off point #200 (OAuth) would fix, so it gives that issue a baseline before any work starts.
4. Introduction acceptance: one gap
Acceptance isn't observable in the MCP events: get_introduction_status logs success/error but not the status it returned. Two options:
add a bounded introductionStatus (pending / accepted / declined / expired) to the metric for that tool only, or
compute acceptance server-side as a daily aggregate from the introductions container, which keeps MCP telemetry free of outcome data.
I'd lean toward the second option, and it would also feed the funnel in #336.
5. Retention policy (draft)
MCP usage telemetry retention. Raw devglobe_mcp events are kept in Log Analytics for 30 days and then deleted by workspace retention. Daily aggregates (counts, rates, p95 latency by day, tool, client and error code) may be kept for 13 months for trend comparison. Events never contain tool or prompt arguments, raw user-agent strings, IP addresses, or client identifiers. callerHash is a daily-salted HMAC used only for same-day counts; it is never exported from the workspace or joined to profile or introduction data. Rotating ENGAGEMENT_HASH_SECRET breaks any linkage to previously issued hashes.
Caveats to write next to the dashboard
No multi-day retention metric. A rotating hash can't tell a returning caller from a new one. Distinct callers per day is an adoption signal, not a count of users.
Gateways undercount. Callers behind a shared gateway (e.g. smithery) share an IP and user agent, so many users can collapse into one callerHash. Read per-client funnels for gateway clients as lower bounds.
callerHash is null when the secret is unset, and query 1 drops those rows. Worth an alert if the share of events without a hash rises above zero in production.
Happy to turn this into a docs PR (docs/mcp-server.md already has the first query) if it's useful.
Activity
sajeetharan commentedon Aug 18, 2026
The implementation for this issue has been completed in draft PR #204.
Delivered Scope: Privacy-safe MCP telemetry measuring search patterns and user flows without gathering sensitive developer PII or keys.
Validation: Tracking verified and checked against security/privacy guidelines.
sajeetharan commentedon Aug 18, 2026
PR #204 delivered privacy-safe log events. Remaining open for dashboard queries and retention policy.
sajeetharan commentedon Aug 30, 2026
This should be connected to the new contribution outcome tracking work in # ($(.Title)) so we can compare mission preview activity to public contribution outcomes in a privacy-safe aggregate funnel.
sajeetharan commentedon Aug 30, 2026
Correction: the Contribution outcome tracking issue #336 supersedes the malformed previous comment.
vishalhabib99 commentedon Sep 30, 2026
A proposal for the two open pieces here (dashboard queries and retention policy), built on the
devglobe_mcpevents that #204 already emits. No new fields are needed except where noted.1. Funnel per caller-day
callerHashrotates daily, so a funnel can only be built within a day. That's the right privacy trade, and it also sets the limits on what the dashboard can claim (see caveats).Activation (share of initialized callers that make at least one successful tool call) is the number I'd put at the top. Connecting and never calling a tool usually means setup friction or tool descriptions that didn't match the user's intent.
2. Zero-result rate: discovery quality
For a discovery product, a successful call that returns nothing is a quiet failure that the success rate hides.
3. Error mix
authentication_requiredonrequest_introductionis the one to watch. It's the drop-off point #200 (OAuth) would fix, so it gives that issue a baseline before any work starts.4. Introduction acceptance: one gap
Acceptance isn't observable in the MCP events:
get_introduction_statuslogs success/error but not the status it returned. Two options:introductionStatus(pending/accepted/declined/expired) to the metric for that tool only, orI'd lean toward the second option, and it would also feed the funnel in #336.
5. Retention policy (draft)
Caveats to write next to the dashboard
smithery) share an IP and user agent, so many users can collapse into onecallerHash. Read per-client funnels for gateway clients as lower bounds.callerHashis null when the secret is unset, and query 1 drops those rows. Worth an alert if the share of events without a hash rises above zero in production.Happy to turn this into a docs PR (
docs/mcp-server.mdalready has the first query) if it's useful.