| 769 | : client_(std::move(client)) {} |
| 770 | |
| 771 | Status DoAction(const ServerCallContext& context, const Action& action, |
| 772 | std::unique_ptr<ResultStream>* result) override { |
| 773 | const ServerMiddleware* middleware = context.GetMiddleware("tracing"); |
| 774 | if (middleware == nullptr || middleware->name() != "TracingTestServerMiddleware") { |
| 775 | current_span_id = ""; |
| 776 | } else { |
| 777 | current_span_id = ((const TracingTestServerMiddleware*)middleware)->span_id; |
| 778 | } |
| 779 | |
| 780 | return client_->DoAction(action).Value(result); |
| 781 | } |
| 782 | |
| 783 | private: |
| 784 | std::unique_ptr<FlightClient> client_; |
nothing calls this directly
no test coverage detected