-
Notifications
You must be signed in to change notification settings - Fork 825
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
OTLPExporterBrowserBase cannot be invoked without 'new' #2943
Comments
If I change the import
to
it is working. Not sure why it was defaulting to esm or if the esm module target was below es6/es2015 |
The code you provided shown in the error: function OTLPTraceExporter(config) {
if (config === void 0) { config = {}; }
>>>>>> var _this = _super.call(this, config) || this;
_this._headers = Object.assign(_this._headers, baggageUtils.parseKeyPairsIntoRecord(getEnv().OTEL_EXPORTER_OTLP_TRACES_HEADERS));
return _this;
} Does not appear in the packages we publish. Are you sure you're not doing some sort of transpilation step? |
I was concerned about that as well. I created a new project with npm init and added "@opentelemetry/exporter-trace-otlp-http": "^0.28.0" and that code is there. In the node_module folder under @opentelemetry/exporter-trace-otlp-http/build/esm/platform/browser/OTLPTraceExporter.js
package.json
package-lock.json
|
Ah i was looking in |
Hey, when can we expect a new npm release with fix for this? |
@domasx2 v0.29.2 containing the fixes has been released. |
Please answer these questions before submitting a bug report.
What version of OpenTelemetry are you using?
1.2.0 with 0.28.0
What version of Node are you using?
14 +
Please provide the code you used to setup the OpenTelemetry SDK
What did you do?
If possible, provide a recipe for reproducing the error.
What did you expect to see?
exporter instantiated properly
What did you see instead?
throws an error
Additional context
worked prior to 1.2.0 and 0.28.0 update
Angular 13.1 application
The text was updated successfully, but these errors were encountered: