| 126 | |
| 127 | #ifdef ARROW_WITH_OPENTELEMETRY |
| 128 | ::arrow::internal::tracing::Scope TraceTaskSubmitted(AsyncTaskScheduler::Task* task, |
| 129 | const util::tracing::Span& parent) { |
| 130 | if (task->span.valid()) { |
| 131 | EVENT(task->span, "task submitted"); |
| 132 | return ACTIVATE_SPAN(task->span); |
| 133 | } |
| 134 | |
| 135 | return START_SCOPED_SPAN_WITH_PARENT_SV(task->span, parent, task->name(), |
| 136 | {{"task.cost", task->cost()}}); |
| 137 | } |
| 138 | |
| 139 | void TraceTaskQueued(AsyncTaskScheduler::Task* task, const util::tracing::Span& parent) { |
| 140 | START_SCOPED_SPAN_WITH_PARENT_SV(task->span, parent, task->name(), |
no test coverage detected