Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/coder/coder
/ snapshot
Method
snapshot
coderd/x/chatd/chatdebug/recorder.go:77–84 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
75
}
76
77
func
(s *attemptSink) snapshot() []Attempt {
78
s.mu.Lock()
79
defer
s.mu.Unlock()
80
81
attempts := make([]Attempt, len(s.attempts))
82
copy(attempts, s.attempts)
83
return
attempts
84
}
85
86
type
attemptSinkKey
struct
{}
87
Callers
15
TestAttemptSink_ThreadSafe
Function · 0.95
TestRecordingTransport_CaptureRequest
Function · 0.80
TestRecordingTransport_CaptureRequestRestoresSharedGetBody
Function · 0.80
TestRecordingTransport_CaptureRequestResetFailureFailsRequest
Function · 0.80
TestRecordingTransport_CaptureRequestBodyCloseFailureFailsRequest
Function · 0.80
TestRecordingTransport_RedactsSensitiveQueryParameters
Function · 0.80
TestRecordingTransport_TruncatesLargeRequestBodies
Function · 0.80
TestRecordingTransport_StripsURLUserinfo
Function · 0.80
TestRecordingTransport_SkipsNonReplayableRequestBodyCapture
Function · 0.80
TestRecordingTransport_CaptureResponse
Function · 0.80
TestRecordingTransport_CaptureResponseRecordsOnClose
Function · 0.80
TestRecordingTransport_StreamingBody
Function · 0.80
Calls
2
Lock
Method · 0.45
Unlock
Method · 0.45
Tested by
15
TestAttemptSink_ThreadSafe
Function · 0.76
TestRecordingTransport_CaptureRequest
Function · 0.64
TestRecordingTransport_CaptureRequestRestoresSharedGetBody
Function · 0.64
TestRecordingTransport_CaptureRequestResetFailureFailsRequest
Function · 0.64
TestRecordingTransport_CaptureRequestBodyCloseFailureFailsRequest
Function · 0.64
TestRecordingTransport_RedactsSensitiveQueryParameters
Function · 0.64
TestRecordingTransport_TruncatesLargeRequestBodies
Function · 0.64
TestRecordingTransport_StripsURLUserinfo
Function · 0.64
TestRecordingTransport_SkipsNonReplayableRequestBodyCapture
Function · 0.64
TestRecordingTransport_CaptureResponse
Function · 0.64
TestRecordingTransport_CaptureResponseRecordsOnClose
Function · 0.64
TestRecordingTransport_StreamingBody
Function · 0.64