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
I was trying to figure out a weird bug in a piece of code and found the culprit: In the JS ctor function code we are trying to install a tracing subscriber
#[js_function(2)]fnconstructor(ctx::CallContext) -> napi::Result<JsUndefined>{// a lot of other not conflicting code here...// this is the line with problemslet tracer = builder.install_batch(opentelemetry::runtime::AsyncStd).unwrap();// Other not relevant code}
The problem is, as far as I know, I cannot use execute_tokio_future here because this is the constructor for a Javascript object and we cannot have async ctors in JS...
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
-
I was trying to figure out a weird bug in a piece of code and found the culprit: In the JS ctor function code we are trying to install a tracing subscriber
The problem is, as far as I know, I cannot use
execute_tokio_future
here because this is the constructor for a Javascript object and we cannot have async ctors in JS...Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions