MCPcopy Index your code
hub / github.com/coder/coder / sendLogsV1

Function sendLogsV1

agent/boundarylogproxy/proxy_test.go:26–33  ·  view source on GitHub ↗

sendLogsV1 writes a bare ReportBoundaryLogsRequest using TagV1, the legacy framing that existing boundary deployments use.

(t *testing.T, conn net.Conn, req *agentproto.ReportBoundaryLogsRequest)

Source from the content-addressed store, hash-verified

24// sendLogsV1 writes a bare ReportBoundaryLogsRequest using TagV1, the
25// legacy framing that existing boundary deployments use.
26func sendLogsV1(t *testing.T, conn net.Conn, req *agentproto.ReportBoundaryLogsRequest) {
27 t.Helper()
28
29 err := codec.WriteMessage(conn, codec.TagV1, req)
30 if err != nil {
31 t.Errorf("write v1 logs: %s", err)
32 }
33}
34
35// sendLogs writes a BoundaryMessage envelope containing logs to the
36// connection using TagV2.

Calls 3

WriteMessageFunction · 0.92
HelperMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected