- Notifications
You must be signed in to change notification settings - Fork928
Description
Right now we only write logs, time/duration and potential error to the logs. We should add bytes read/written to help deduce if a single workspace experienced an issue (or if the load generation is unbalanced).
Example JSON excerpt from a test usingcoder exp scaletest workspace-traffic --ssh
:
{"runs": {"workspace-traffic/549": {"full_id":"workspace-traffic/549","test_name":"workspace-traffic","id":"549","logs":"2024-02-15 10:37:18.937 [debu] sdk request method=GET url=https://big.cdr.dev/api/v2/workspaceagents/932a1abe-825c-4571-a6fd-f344eaf9a15b/connection body=\"\"\n2024-02-15 10:37:18.937 [debu] config agent_id=0cbcefd6-108d-4162-960b-3a26db54b111 reconnecting_pty_id=3788b616-240a-4c84-aebf-06526b4212eb height=25 width=80 tick_interval=5ms bytes_per_tick=1024\n2024-02-15 10:37:18.937 [debu] connect to workspace agent agent_id=0cbcefd6-108d-4162-960b-3a26db54b111\n2024-02-15 10:37:18.937 [info] connecting to workspace agent agent_id=0cbcefd6-108d-4162-960b-3a26db54b111 method=ssh\n2024-02-15 10:38:19.965 [debu] reading from agent agent_id=0cbcefd6-108d-4162-960b-3a26db54b111\n2024-02-15 10:38:19.965 [debu] writing to agent agent_id=0cbcefd6-108d-4162-960b-3a26db54b111\n2024-02-15 11:17:19.297 [debu] done writing to agent agent_id=0cbcefd6-108d-4162-960b-3a26db54b111\n2024-02-15 11:17:32.166 [debu] done reading from agent agent_id=0cbcefd6-108d-4162-960b-3a26db54b111\n","started_at":"2024-02-15T10:37:18.936990511Z","duration":"40m13.229488891s","duration_ms":2413229,"error":"<nil>" } }}