|
|
@ -115,8 +115,7 @@ class FakeClientCallTracer : public ClientCallTracer { |
|
|
|
~FakeClientCallTracer() override {} |
|
|
|
~FakeClientCallTracer() override {} |
|
|
|
CallAttemptTracer* StartNewAttempt(bool /*is_transparent_retry*/) override { |
|
|
|
CallAttemptTracer* StartNewAttempt(bool /*is_transparent_retry*/) override { |
|
|
|
auto call_attempt_tracer = |
|
|
|
auto call_attempt_tracer = |
|
|
|
grpc_core::MakeRefCounted<FakeClientCallAttemptTracer>( |
|
|
|
MakeRefCounted<FakeClientCallAttemptTracer>(annotation_logger_); |
|
|
|
annotation_logger_); |
|
|
|
|
|
|
|
call_attempt_tracers_.emplace_back(call_attempt_tracer); |
|
|
|
call_attempt_tracers_.emplace_back(call_attempt_tracer); |
|
|
|
return call_attempt_tracer.release(); // Released in RecordEnd().
|
|
|
|
return call_attempt_tracer.release(); // Released in RecordEnd().
|
|
|
|
} |
|
|
|
} |
|
|
@ -135,8 +134,7 @@ class FakeClientCallTracer : public ClientCallTracer { |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
std::vector<std::string>* annotation_logger_; |
|
|
|
std::vector<std::string>* annotation_logger_; |
|
|
|
std::vector<grpc_core::RefCountedPtr<FakeClientCallAttemptTracer>> |
|
|
|
std::vector<RefCountedPtr<FakeClientCallAttemptTracer>> call_attempt_tracers_; |
|
|
|
call_attempt_tracers_; |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
#define GRPC_ARG_INJECT_FAKE_CLIENT_CALL_TRACER_FACTORY \ |
|
|
|
#define GRPC_ARG_INJECT_FAKE_CLIENT_CALL_TRACER_FACTORY \ |
|
|
|