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
All the examples for node.js just use a synchronous "die roller" application.
Most real applications are based on async functions and promises, and the "scoped" callback-based tracer.startActiveSpan() function will end the span too early.
There are some discussion about how (synchronous) callbacks are bad style in Node.js (which is true within the context of promises based functions) but the answers are all missing the point, saying "functions aren't bad style."
So, are there really no async-based helpers in the opentelemetry SDK?
What is the recommended way to trace async functions?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
All the examples for node.js just use a synchronous "die roller" application.
Most real applications are based on async functions and promises, and the "scoped" callback-based tracer.startActiveSpan() function will end the span too early.
There are some discussion about how (synchronous) callbacks are bad style in Node.js (which is true within the context of promises based functions) but the answers are all missing the point, saying "functions aren't bad style."
So, are there really no async-based helpers in the opentelemetry SDK?
What is the recommended way to trace async functions?
Beta Was this translation helpful? Give feedback.
All reactions