mbrobbel commented on issue #2804:
URL: https://github.com/apache/arrow-adbc/issues/2804#issuecomment-2865621051

   > I can see that there's an OTel specific context
   
   I think I'm missing some context 🙃 here. Can you elaborate?
   
   A common approach in Rust would be to use 
[`tracing`](https://docs.rs/tracing/latest/tracing/) (behind a feature flag), 
and when enabled users can just opt-in to export traces e.g. using 
[`tracing-opentelemetry`](https://docs.rs/tracing-opentelemetry/latest/tracing_opentelemetry/).
   
   > And is there a type that is used for cancellation in the same way Go's is, 
or would that be handled by making an async API and just dropping the returned 
future?
   
   It really depends on the runtime that is used. For example in `tokio`:
   
   > If a JoinHandle is dropped, then the task continues running in the 
background and its return value is lost.
   
   You could handle cancellation using the runtime support for it (e.g. 
https://docs.rs/tokio/latest/tokio/task/index.html#cancellation) or make it 
explicitly part of the task state machine using something like cancellation 
tokens.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to