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
If possible, provide a recipe for reproducing the error.
I have React js frontend app with "@opentelemetry/plugin-react-load": "^0.12.1". It works with opentelemetry-js v0.14.0 but after update the package to v0.15.0, it fails with the following error. It prevents render web UI and displays some error stack traces.
Uncaught TypeError: BaseOpenTelemetryComponent._tracer.withSpan is not a function
at App._instrumentFunction (BaseOpenTelemetryComponent.js:89)
at App.patchRender (BaseOpenTelemetryComponent.js:162)
at finishClassComponent (react-dom.development.js:17485)
at updateClassComponent (react-dom.development.js:17435)
at beginWork (react-dom.development.js:19073)
at HTMLUnknownElement.callCallback (react-dom.development.js:3945)
at ZoneDelegate.invokeTask (zone.js:401)
at Zone.runTask (zone.js:174)
at ZoneTask.invokeTask [as invoke] (zone.js:483)
at invokeTask (zone.js:1596)
at HTMLUnknownElement.globalZoneAwareCallback (zone.js:1622)
at Object.invokeGuardedCallbackDev (react-dom.development.js:3994)
at invokeGuardedCallback (react-dom.development.js:4056)
at beginWork$1 (react-dom.development.js:23964)
at performUnitOfWork (react-dom.development.js:22776)
at workLoopSync (react-dom.development.js:22707)
at renderRootSync (react-dom.development.js:22670)
at performSyncWorkOnRoot (react-dom.development.js:22293)
at react-dom.development.js:11327
at unstable_runWithPriority (scheduler.development.js:646)
at runWithPriority$1 (react-dom.development.js:11276)
at flushSyncCallbackQueueImpl (react-dom.development.js:11322)
at flushSyncCallbackQueue (react-dom.development.js:11309)
at flushSync (react-dom.development.js:22467)
at Object.scheduleRoot (react-dom.development.js:24444)
at react-refresh-runtime.development.js:284
at Set.forEach (<anonymous>)
at Object.performReactRefresh (react-refresh-runtime.development.js:263)
at RefreshUtils.js:62
at ZoneDelegate.invokeTask (zone.js:401)
at Zone.runTask (zone.js:174)
at invokeTask (zone.js:483)
at ZoneTask.invoke (zone.js:472)
at timer (zone.js:2538)
---
The above error occurred in the <App> component:
at App (http://localhost:3000/static/js/main.chunk.js:344:1)
Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.
---
Uncaught TypeError: this._tracer.withSpan is not a function
at documentLoad.js:76
at NoopContextManager.with (NoopContextManager.ts:29)
at ContextAPI.with (context.ts:86)
at DocumentLoad._collectPerformance (documentLoad.js:71)
at documentLoad.js:48
at ZoneDelegate.invokeTask (zone.js:401)
at Zone.runTask (zone.js:174)
at invokeTask (zone.js:483)
at ZoneTask.invoke (zone.js:472)
at timer (zone.js:2538)
importReactfrom'react';importReactDOMfrom'react-dom';import'./index.css';importAppfrom'./App';importreportWebVitalsfrom'./reportWebVitals';importtracerfrom'./tracing';ReactDOM.render(<React.StrictMode><App/></React.StrictMode>,document.getElementById('root'));// If you want to start measuring performance in your app, pass a function// to log results (for example: reportWebVitals(console.log))// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitalsreportWebVitals();
What version of OpenTelemetry are you using?
opentelemetry-js: v0.15.0
opentelemetry-js-contrib: v0.12.1
What version of Node are you using?
v.14.13.1
What did you do?
If possible, provide a recipe for reproducing the error.
I have React js frontend app with
"@opentelemetry/plugin-react-load": "^0.12.1"
. It works with opentelemetry-js v0.14.0 but after update the package to v0.15.0, it fails with the following error. It prevents render web UI and displays some error stack traces.The source code is the following.
tracing.js:
index.js:
App.js:
Are there any workarounds?
The text was updated successfully, but these errors were encountered: