You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm removing the bug label since we don't claim to support this. As you said, this is caused by dynamically loading proto files. There have been other requests for this in the past and they seem to be coming more frequently so we should probably look into this soon. I know some people have already done some work looking into statically generated grpc clients, but they ran into compatibility issues with our existing export transformations.
What happened?
I'm using esbuild to build my server in single .mjs file.
![image](https://user-images.githubusercontent.com/39828645/223234604-553cdeea-4073-412d-a824-1b2ca92a4e26.png)
And i got an error with
ReferenceError: __dirname is not defined
@opentelemetry/otlp-grpc-exporter-base/build/src/util.js
Try to load protos files in run time, not build time. Do not do that.
Steps to Reproduce
Build project with esbuild
Expected Result
Protos files present in library bundle in build time.
Actual Result
Library try to load protos in run time.
Additional Details
Building for esm, running in node 18.8
OpenTelemetry Setup Code
package.json
Relevant log output
The text was updated successfully, but these errors were encountered: