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
Check that Cody Web demo works (meaning has no runtime error on initial run)
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.
Test plan