gabotechs opened a new pull request, #28001: URL: https://github.com/apache/datafusion/pull/28001
When profiling DataFusion with Tokio's `tokio_unstable` task hooks (e.g. `tokio-console` or `dial9`), every task spawned through `SpawnedTask`, `JoinSet`, or `ReceiverStreamBuilder` / `RecordBatchReceiverStreamBuilder` gets attributed to the wrapper itself instead of the operator or call site that spawned it, because those wrappers don't forward `#[track_caller]` to Tokio's `spawn*` methods. Adding `#[track_caller]` to the `spawn*` methods on those wrappers lets Tokio record the actual caller location in `TaskMeta::spawned_at()`: - **Before**: tasks show up as `datafusion-common-runtime/src/common.rs:35` or `join_set.rs:56` (or `datafusion-physical-plan/src/stream.rs:72`). - **Now**: tasks point to the actual call site (e.g. `datafusion-physical-plan/src/repartition/mod.rs:607`, `datafusion-datasource-parquet/src/file_format.rs:630`, or user code). -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
