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

Function SlogDisconnectDetail

codersdk/disconnect.go:8–10  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

6// detail string that supplements the structured reason. Use it for
7// "exited with code 137" style information that does not fit a category.
8func 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

Callers 3

CloseMethod · 0.92
CloseMethod · 0.92
ServeMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected