-
Notifications
You must be signed in to change notification settings - Fork 8
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
@opentelemetry/exporter-prometheus does not work with create-react-app (bundling with Webpack V5) #40
Comments
I was able to get an example running by adding node.js polyfills. I needed to install the following
Then add this to my dependencies in package.json: "http": "npm:stream-http@^3.2.0", Got help from this comment |
So this is happening because by default, with no other configuration, I think the shorter-term solution is throwing a better error for the user that explains they need to use the |
I think this issue got resolved by splitting the packages we did for 0.7. |
When trying to add autometrics with a push gateway to a create-react-app project, I get the following error:
The issue appears to be that we need polyfills for node.js core modules.
Maybe it'd be good to have a client-side tailored package of autometrics? Since for browser-based apps we might not need all of the open telemetry deps
The text was updated successfully, but these errors were encountered: