sourcegraph / cody

Type less, code more: Cody is an AI code assistant that uses advanced search and codebase context to help you write and fix code.
https://cody.dev
Apache License 2.0
2.79k stars 302 forks source link

Revert open telemetry integration #6100 #6179

Closed vovakulikov closed 5 hours ago

vovakulikov commented 5 hours ago

Revert of https://github.com/sourcegraph/cody/pull/6100

https://github.com/sourcegraph/cody/pull/6100 introduces Cody Web regression because it pulls into the bundle zlib, and apparently, the zlib browser version doesn't work in the web-worker context. Hence, we have a runtime error. I suggest we revert changes from https://github.com/sourcegraph/cody/pull/6100 and investigate more into what exactly is happening in web-worker Cody's Web bundle with the new open telemetry reporter.

Uncaught TypeError: Cannot read properties of undefined (reading 'prototype')
    at ../../../cody/web/dist/agent.worker-Cnq9eXnn.mjs (50be7d08-d01b-472b-8932-6af884d43a68:488831:61)
    at __init (50be7d08-d01b-472b-8932-6af884d43a68:11:56)
    at 50be7d08-d01b-472b-8932-6af884d43a68:501380:1

Test plan