Repository navigation
agentHost: resolve native OTLP trace endpoints - #337783
Merged
Joaquín Ruales (jruales) merged 1 commit intoSep 24, 2026
Merged
Conversation
Resolve bare HTTP collector URLs before forwarding them as native trace-specific endpoints. Preserve explicit paths, gRPC, other signal destinations, and DB-mode routing, including startup-failure fallback. Related to #337413. Co-authored-by: Copilot <[email protected]>
Joaquín Ruales (jruales)
marked this pull request as ready for review
September 24, 2026 19:27
Joaquín Ruales (jruales)
marked this pull request as draft
September 24, 2026 19:29
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The focused implementation preserves existing routing semantics and includes appropriate regression coverage.
Review effort: Balanced
Findings: None
What changed in this PR
Fixes Agent Host native OTLP/HTTP trace routing so base collector URLs target /v1/traces.
Changes:
- Resolves HTTP trace endpoints while preserving gRPC and other signal destinations.
- Covers pass-through and DB-fallback behavior.
- Documents endpoint-routing semantics.
| File | Description |
|---|---|
src/vs/platform/agentHost/node/otel/agentHostOTelService.ts |
Resolves native HTTP trace endpoints. |
src/vs/platform/agentHost/common/otel/agentHostOTelService.ts |
Clarifies the trace endpoint contract. |
src/vs/platform/agentHost/test/node/otel/agentHostOTelService.integrationTest.ts |
Adds routing regression coverage. |
src/vs/platform/agentHost/OTEL.md |
Documents pass-through routing behavior. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
Joaquín Ruales (jruales)
marked this pull request as ready for review
September 24, 2026 20:56
Joaquín Ruales (jruales)
enabled auto-merge (squash)
September 24, 2026 21:10
Dmitriy Vasyura (dmitrivMS)
approved these changes
Sep 24, 2026
Joaquín Ruales (jruales)
deleted the
agents/managed-otel-regression-fix
branch
September 24, 2026 21:22
1 of 6 tasks
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Addresses the trace-routing portion of #337413.
Agent Host copied a bare collector URL such as
http://localhost:4318into the native trace-specific endpoint. Unlike a base OTLP endpoint, that value is used verbatim, so Copilot's native runtime posted traces to/instead of/v1/traces.resolveOtlpTracesEndpointwhen constructing native HTTP trace configuration.Validation
npm run transpile-clientgit diff --check, and commit hygiene passed.1.0.15-unstable.35393089353.gfc44743.1.0.15-preview.2.POST /received 404; afterward,POST /v1/tracesreceived 200.The native smoke tests used a strict local collector fixture, not the official OpenTelemetry Collector.
Scope
This fixes endpoint routing once telemetry configuration reaches the runtime. It does not resolve the separate native managed-telemetry initialization/enforcement gap or the governed-identity portion of #337413, so that issue remains open.