SlogDisconnectDetail is the slog field for the free-form, human-readable detail string that supplements the structured reason. Use it for "exited with code 137" style information that does not fit a category.
(detail string)
| 6 | // detail string that supplements the structured reason. Use it for |
| 7 | // "exited with code 137" style information that does not fit a category. |
| 8 | func SlogDisconnectDetail(detail string) slog.Field { |
| 9 | return slog.F("disconnect_detail", detail) |
| 10 | } |
| 11 | |
| 12 | // DisconnectReason categorizes why a workspace connection ended. It is |
| 13 | // emitted as a slog field at every disconnect log site so operators can |