| 347 | } |
| 348 | |
| 349 | JsonValue wrap_event(const char* type, |
| 350 | const std::string& timestamp, |
| 351 | JsonValue body) { |
| 352 | JsonValue event; |
| 353 | event["id"] = Trace::new_uuid(); |
| 354 | event["timestamp"] = timestamp; |
| 355 | event["type"] = type; |
| 356 | event["body"] = std::move(body); |
| 357 | return event; |
| 358 | } |
| 359 | |
| 360 | } // namespace |
| 361 |
no outgoing calls
no test coverage detected