Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ RequestLoggerFromContext
Function
RequestLoggerFromContext
coderd/httpmw/loggermw/logger.go:196–202 ·
view source on GitHub ↗
(ctx context.Context)
Source
from the content-addressed store, hash-verified
194
}
195
196
func
RequestLoggerFromContext(ctx context.Context) RequestLogger {
197
val := ctx.Value(logContextKey{})
198
if
logCtx, ok := val.(RequestLogger); ok {
199
return
logCtx
200
}
201
return
nil
202
}
Callers
13
follow
Method · 0.92
workspaceAgentLogs
Method · 0.92
derpMapUpdates
Method · 0.92
watchWorkspaceAgentMetadata
Method · 0.92
watchInboxNotifications
Method · 0.92
ExtractTaskParam
Function · 0.92
ExtractWorkspaceAgentAndWorkspaceParam
Function · 0.92
ValidateAPIKey
Function · 0.92
ExtractWorkspaceParam
Function · 0.92
As
Function · 0.92
provisionerDaemonServe
Method · 0.92
Middleware
Function · 0.92
Calls
1
Value
Method · 0.45
Tested by
1
TestLoggerMiddleware_WebSocket
Function · 0.68