DisconnectReason categorizes why a workspace connection ended. It is emitted as a slog field at every disconnect log site so operators can filter and aggregate disconnects without parsing free-form reason strings. The set of values intentionally stays small. Use DisconnectReasonUnknown when no othe
| 19 | // constant here (and update its godoc) when a new disconnect class is |
| 20 | // genuinely distinct from the existing ones. |
| 21 | type DisconnectReason string |
| 22 | |
| 23 | func (r DisconnectReason) SlogField() slog.Field { |
| 24 | if r == "" { |
no outgoing calls
no test coverage detected