-
Notifications
You must be signed in to change notification settings - Fork 7
Fix prepareStackTrace, add more devmode logging #343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe changes introduce enhanced error handling in the stack trace preparation logic and add detailed trace-level logging to the server connection process. The server's logger initialization order is adjusted, server ID generation now uses the project ID, and OpenTelemetry attributes are updated. API client initialization now uses the correct context. Additional improvements include handling context cancellation errors in the dev command and API client HTTP request execution. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Server
participant Logger
participant DevModeServer
participant APIClient
Client->>Server: Connect()
Server->>Logger: Trace "Starting connection"
Server->>Logger: Trace "Refreshing connection metadata"
Server->>Logger: Trace "Dialing devmode server"
Server->>DevModeServer: Dial()
Server->>APIClient: Initialize with server context
Server-->>Client: Connection established or error
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (1)
🧰 Additional context used🪛 GitHub Actions: PR #343internal/util/api.go[error] 22-22: No required module provides package github.com/agentuity/go-common/logger; to add it: run 'go get github.com/agentuity/go-common/logger'. 🔇 Additional comments (4)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
prepareStackTraceto not crash the program when we cant sugar up the err stackcontext cancelledduring a startupSummary by CodeRabbit
Bug Fixes
Refactor