| 89 | /// \brief Propagate the given span to each invocation of an async generator. |
| 90 | template <typename T> |
| 91 | AsyncGenerator<T> PropagateSpanThroughAsyncGenerator( |
| 92 | AsyncGenerator<T> wrapped, |
| 93 | opentelemetry::nostd::shared_ptr<opentelemetry::trace::Span> span) { |
| 94 | return [=]() mutable -> Future<T> { |
| 95 | auto scope = GetTracer()->WithActiveSpan(span); |
| 96 | return wrapped(); |
| 97 | }; |
| 98 | } |
| 99 | |
| 100 | /// \brief Propagate the currently active span to each invocation of an async generator. |
| 101 | /// |
nothing calls this directly
no test coverage detected