Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coder/coder
/ attemptSinkFromContext
Function
attemptSinkFromContext
coderd/x/chatd/chatdebug/recorder.go:95–98 ·
view source on GitHub ↗
(ctx context.Context)
Source
from the content-addressed store, hash-verified
93
}
94
95
func
attemptSinkFromContext(ctx context.Context) *attemptSink {
96
sink, _ := ctx.Value(attemptSinkKey{}).(*attemptSink)
97
return
sink
98
}
99
100
var
stepCounters sync.Map
// map[uuid.UUID]*atomic.Int32
101
Callers
9
TestAttemptSinkContext
Function · 0.85
TestBeginStep_NilService
Function · 0.85
RoundTrip
Method · 0.85
TestBeginStepReuseStep
Function · 0.85
TestDebugModel_Disabled
Function · 0.85
TestDebugModel_Generate
Function · 0.85
TestDebugModel_Stream
Function · 0.85
TestDebugModel_StreamObject
Function · 0.85
TestDebugModel_GenerateObject
Function · 0.85
Calls
1
Value
Method · 0.45
Tested by
8
TestAttemptSinkContext
Function · 0.68
TestBeginStep_NilService
Function · 0.68
TestBeginStepReuseStep
Function · 0.68
TestDebugModel_Disabled
Function · 0.68
TestDebugModel_Generate
Function · 0.68
TestDebugModel_Stream
Function · 0.68
TestDebugModel_StreamObject
Function · 0.68
TestDebugModel_GenerateObject
Function · 0.68