sendLogs writes a BoundaryMessage envelope containing logs to the connection using TagV2.
(t *testing.T, conn net.Conn, req *agentproto.ReportBoundaryLogsRequest)
| 35 | // sendLogs writes a BoundaryMessage envelope containing logs to the |
| 36 | // connection using TagV2. |
| 37 | func sendLogs(t *testing.T, conn net.Conn, req *agentproto.ReportBoundaryLogsRequest) { |
| 38 | t.Helper() |
| 39 | |
| 40 | msg := &codec.BoundaryMessage{ |
| 41 | Msg: &codec.BoundaryMessage_Logs{Logs: req}, |
| 42 | } |
| 43 | err := codec.WriteMessage(conn, codec.TagV2, msg) |
| 44 | if err != nil { |
| 45 | t.Errorf("write logs: %s", err) |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | // sendStatus writes a BoundaryMessage envelope containing a BoundaryStatus |
| 50 | // to the connection using TagV2. |
no test coverage detected