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

Function Fields

agent/agentchat/log.go:44–50  ·  view source on GitHub ↗

Fields returns structured log fields for the chat identity on ctx.

(ctx context.Context)

Source from the content-addressed store, hash-verified

42
43// Fields returns structured log fields for the chat identity on ctx.
44func Fields(ctx context.Context) []slog.Field {
45 chatCtx, ok := FromContext(ctx)
46 if !ok {
47 return nil
48 }
49 return chatFields(chatCtx.ID, chatCtx.AncestorIDs)
50}
51
52// Middleware tags agent logs for requests that originate from
53// chatd. Agent log lines emitted while serving a request with Coder-Chat-Id,

Callers 14

handleProcessOutputMethod · 0.92
streamFileMethod · 0.92
atomicWriteMethod · 0.92
handleListToolsMethod · 0.92
doReloadMethod · 0.92
parseAndDedupMethod · 0.92
connectAllMethod · 0.92
RefreshToolsMethod · 0.92
buildEnvMethod · 0.92
handleDesktopVNCMethod · 0.92
handleActionMethod · 0.92
handleRecordingStopMethod · 0.92

Calls 2

FromContextFunction · 0.85
chatFieldsFunction · 0.85

Tested by 1