1 #include "llvm/Telemetry/Telemetry.h"
6 void TelemetryInfo::serialize(Serializer
&serializer
) const {
7 serializer
.write("SessionId", SessionId
);
10 Error
Manager::dispatch(TelemetryInfo
*Entry
) {
11 if (Error Err
= preDispatch(Entry
))
14 Error AllErrs
= Error::success();
15 for (auto &Dest
: Destinations
) {
16 AllErrs
= joinErrors(std::move(AllErrs
), Dest
->receiveEntry(Entry
));
21 void Manager::addDestination(std::unique_ptr
<Destination
> Dest
) {
22 Destinations
.push_back(std::move(Dest
));
25 } // namespace telemetry