Repository navigation
[docs] Document faster agent telemetry hook and OTLP request size breaking change - #1751
Closed
aspire-repo-bot[bot] wants to merge 1 commit into
Closed
aspire-repo-bot[bot] wants to merge 1 commit into
aspire-repo-bot[bot] wants to merge 1 commit into
Conversation
…hange Documents user-facing changes from microsoft/aspire#20387: - Native aspire agent telemetry --hook execution (no shell wrapper) - ASPIRE_AGENT_TELEMETRY_MAX_PAYLOAD_CHARACTERS environment variable - Breaking change: OpenTelemetry 1.18 default OTLP request size drops from 128 MiB to 64 MiB, with the OtlpExporterOptions workaround Co-authored-by: Copilot <[email protected]>
5 of 14 tasks
David Pine (IEvangelist)
marked this pull request as ready for review
September 25, 2026 04:08
David Pine (IEvangelist)
requested review from
David Pine (IEvangelist) and
Mitch Denny (mitchdenny)
as code owners
September 25, 2026 04:08
David Pine (IEvangelist)
requested
a lite review from Copilot
and removed request for
James Newton-King (JamesNK) and
Mitch Denny (mitchdenny)
September 25, 2026 04:08
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The documentation describes Aspire 14.0 behavior on the 13.6 branch; align the version or backport the implementation.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 2
Open (2)
What changed in this PR
Documents faster agent telemetry hooks and the OpenTelemetry request-size change.
Changes:
- Adds release notes for telemetry and OTLP updates.
- Updates CLI telemetry reference guidance.
| File | Summary |
|---|---|
src/frontend/src/content/docs/whats-new/aspire-13-6.mdx |
Adds telemetry and breaking-change release notes. |
src/frontend/src/content/docs/reference/cli/microsoft-collected-cli-telemetry.mdx |
Documents native hook behavior and payload limits. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+18
to
+22
| Since Aspire 13.6, the hook runs the CLI's native `aspire agent telemetry --hook` executable directly rather than through a shell wrapper, reducing the overhead added to every agent tool call. GitHub Copilot CLI and Claude Code hook registrations still match every tool call, so coverage is unchanged. | ||
|
|
||
| After each agent tool use, the hook checks if an **Aspire** skill, Aspire MCP tool, or Aspire skill reference file was involved. If so, the hook inspects the event and forwards a low-cardinality usage event to the hidden `aspire agent telemetry` command. The command records the event through the same CLI telemetry pipeline. Tool uses that don't involve Aspire skills or tools are ignored. See [AI agent skill usage data](#ai-agent-skill-usage-data) for exactly what's recorded. | ||
|
|
||
| Set `ASPIRE_AGENT_TELEMETRY_MAX_PAYLOAD_CHARACTERS` to change the maximum size of hook input the CLI reads before parsing. The default is `65536` UTF-16 characters, and the accepted range is `1`-`1048576`; oversized input is drained without being retained, and an invalid value produces a diagnostic without breaking the agent. |
Comment on lines
+287
to
+291
| The `PostToolUse` hook installed by `aspire agent init` now runs the CLI's native `aspire agent telemetry --hook` executable directly instead of the previous shell-script wrapper, removing shell startup and synchronous upload waits from every agent tool call. GitHub Copilot CLI and Claude Code hook registrations still match every tool call (`matcher: "*"` for Claude, unfiltered `postToolUse` for Copilot); coverage of Aspire skills, MCP tools, and skill reference files is unchanged. Refresh existing hook registrations after upgrading: | ||
|
|
||
| ```bash title="Aspire CLI — Refresh agent hook configuration" | ||
| aspire agent init | ||
| ``` |
Contributor
Author
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
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.

Documents changes from microsoft/aspire#20387
@IEvangelistTarget branch
Targeting
release/13.6— the latest release branch onmicrosoft/aspire.dev— because the source PR's milestone (14.0) has no matchingrelease/14.0branch there yet.Why this PR is needed
microsoft/aspire#20387 ("Reduce agent telemetry hook overhead without reducing coverage") makes two user-facing changes that the deterministic signal scan flagged as
docs_required:PostToolUsehook installed byaspire agent initnow runs the CLI's nativeaspire agent telemetry --hookexecutable directly instead of a shell-script wrapper, removing shell startup and synchronous upload waits from every agent tool call. Coverage (which tool calls are observed) is unchanged. The PR's own "User-facing usage" section tells users to runaspire agent initagain to refresh their hook registration, and introduces a new environment variable,ASPIRE_AGENT_TELEMETRY_MAX_PAYLOAD_CHARACTERS, that bounds the hook's input size before parsing (default65536, range1-1048576).breaking-changelabel and an explicit "Breaking changes" section): the coordinated OpenTelemetry package upgrade to the1.18.xline drops the default maximum serialized OTLP request size from 128 MiB to 64 MiB. Oversized batches are now dropped instead of exported, with a documentedOtlpExporterOptions.MaxRequestSizeBytesworkaround.Neither change was previously documented on
aspire.dev.What was changed
src/frontend/src/content/docs/whats-new/aspire-13-6.mdx:aspire agent initrefresh step, and the newASPIRE_AGENT_TELEMETRY_MAX_PAYLOAD_CHARACTERSenvironment variable.MaxRequestSizeBytesrestoration snippet.Asideto reference both changes.src/frontend/src/content/docs/reference/cli/microsoft-collected-cli-telemetry.mdx:No new pages were created; all edits are to existing, directly relevant pages.