Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate OpenTelemetry tracing in Cody Webview (#6100)
Enhance the chat application by integrating OpenTelemetry for tracing and context management. This update includes: - Added OpenTelemetry dependencies for context and tracing. - Implemented tracing spans in chat interactions, feedback submission in Webview - Managed active chat context using OpenTelemetry's context API. - Introduced a telemetry service for managing tracing configuration. - Added a new class for exporting trace data in `ChatController` from the webview These changes aim to improve observability and debugging capabilities by providing detailed trace information for chat interactions and operations ## Test plan - Run sourcegraph instance locally - Run `sg start otel ` - Run the debugger for vscode cody locally on this branch - Perform some chat operations - Go to `http://localhost:16686` to see if Jaegar is running - Select Cody-Client as the service - See a trace with the title `chat-interaction ` this is a trace coming from the webview <img width="1047" alt="image" src="https://github.com/user-attachments/assets/2ba1dc6b-5da9-42c5-a4da-b04cf8527287"> Here is a video https://www.loom.com/share/557b0ea9dffd4561810f8d67879f7dfb <!-- Required. See https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles. --> ## Changelog <!-- OPTIONAL; info at https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c -->
- Loading branch information