Open MatthewMaclean opened 1 year ago
+1, I'm seeing this error this week on some of our Jest CI runs
+1, encountered this as well - was intermittent and went undetected during development.
My solution here is:
tracer.use('http2', { enabled: false });
It's not ideal, but I prefer it over my application crashing due to tracing observability. The unfortunate part here is that the exception is uncatchable outside of the library, based on where they have to hook in. I can understand that solving the underlying issue might be difficult, but I think the library should at least include some nullability checks for preventative measures.
Expected behaviour Tracer shouldn't crash the server on failure. Is there a
Actual behaviour The tracer crashed our server with the following error:
I'm not familiar enough with the codebase, but it's weird that https://github.com/DataDog/dd-trace-js/blob/v3.14.1/packages/dd-trace/src/plugins/plugin.js#L13 would call into a function that expects the store to exist: https://github.com/DataDog/dd-trace-js/blob/v3.14.1/packages/datadog-plugin-http2/src/client.js#L74
Steps to reproduce Happened randomly on server startup, haven't seen it reproduce. There were no recent library upgrades.
Environment