fix: add missing TelemetryRuntimeConfig methods and remove obsolete test#4730
Conversation
- Add isInteractive() and getOutboundCorrelationPropagateTraceContext() to TelemetryRuntimeConfig interface (required by sdk.ts) - Add implementations in createDaemonTelemetryRuntimeConfig - Remove httpAcpBridge.test.ts (tests moved to acp-bridge/bridge.test.ts) These fixes were applied in the initial merge resolution but lost when the merge commit was recreated with proper two-parent structure.
📋 Review SummaryThis PR restores critical fixes that were lost during merge conflict resolution in #4490. The changes add two missing methods to the 🔍 General Feedback
🎯 Specific Feedback🔴 CriticalNo critical issues identified. The changes are necessary to fix compilation errors and restore lost functionality. 🟡 HighNo high priority issues identified. 🟢 MediumNo medium priority issues identified. 🔵 Low
✅ Highlights
📝 Verification NotesPer the PR description:
Recommendation: Approve and merge. The changes are minimal, necessary, and low-risk. |
There was a problem hiding this comment.
Pull request overview
This PR restores telemetry runtime API compatibility by extending TelemetryRuntimeConfig with two methods used by the telemetry SDK, wiring minimal daemon-side implementations in qwen serve, and removing an obsolete CLI-side ACP bridge test suite that has been relocated.
Changes:
- Extend
TelemetryRuntimeConfigwithisInteractive()andgetOutboundCorrelationPropagateTraceContext(). - Implement the two methods in the daemon telemetry runtime config used by
packages/cli’srunQwenServe. - Delete
packages/cli/src/serve/httpAcpBridge.test.tsas obsolete after the test migration to@qwen-code/acp-bridge.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/core/src/telemetry/runtime-config.ts | Adds two required methods to the telemetry runtime config interface. |
| packages/cli/src/serve/runQwenServe.ts | Implements the new runtime-config methods for daemon telemetry initialization. |
| packages/cli/src/serve/httpAcpBridge.test.ts | Removes the legacy CLI-side ACP bridge test suite (now covered elsewhere). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| isInteractive: () => false, | ||
| getOutboundCorrelationPropagateTraceContext: () => false, |
Summary
isInteractive()andgetOutboundCorrelationPropagateTraceContext()toTelemetryRuntimeConfiginterface (required bysdk.ts)createDaemonTelemetryRuntimeConfiginrunQwenServe.tshttpAcpBridge.test.ts(tests moved toacp-bridge/bridge.test.tsper F1)These fixes were applied during the merge conflict resolution in #4490 but lost when the merge commit was recreated with proper two-parent structure.
Test plan
npm run build)🤖 Generated with Qwen Code