Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: rename recorderTranslation to DRPCRecorder - #29133

Merged
SasSwart merged 2 commits into
mainfrom
sas/aigov-358
Sep 9, 2026
Merged

chore: rename recorderTranslation to DRPCRecorder#29133
SasSwart merged 2 commits into
mainfrom
sas/aigov-358

Conversation

@SasSwart

@SasSwart SasSwart commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

The old name, recorderTranslation, did not clarify from what calls were being translated, nor to what they were being translated. The new name, DRPCRecorder, immediately explains that calls are being recorded over DRPC.

This was a readability hurdle while trying to investigate touch points for AIGOV-358.

This is the first step towards implementing either a /dev/null-esque recorder or a logging recorder as per the requirements in AIGOV-358.

translationRecorder did not clarify from what calls were being
translated, nor to what they were being translated. The new name
immediately explains that calls are being recorded over DRPC.
@linear-code

linear-code Bot commented Sep 9, 2026

Copy link
Copy Markdown

AIGOV-358

)

// WrappedRecorder is a convenience struct which implements RecorderClient and resolves a client before calling each method.
// WrappedRecorder is a convenience struct which implements Recorder and resolves a client before calling each method.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspect the interface used to be called RecorderClient and that the name drifted, leaving this comment out of date. This caused confusion for me, so I brought it back in line with the interface name.

@SasSwart
SasSwart requested review from johnstcn and pawbana September 9, 2026 14:33
@SasSwart SasSwart changed the title chore: rename translationRecorder to DRPCRecorder chore: rename recorderTranslation to DRPCRecorder Sep 9, 2026
Comment thread coderd/aibridged/pool.go
recorder := aibridge.NewRecorder(
p.logger.Named("recorder"),
p.tracer,
func(clientCtx context.Context) (aibridge.Recorder, error) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(since parameters where cleaned up) very nit: I'd extract func to variable

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was considering it. will do something like it in a follow up. I still have questions about why we fetch a new client for every call. Once I understand that, I will make the necessary change here.

@SasSwart
SasSwart merged commit d5e2ca7 into main Sep 9, 2026
32 checks passed
@SasSwart
SasSwart deleted the sas/aigov-358 branch September 9, 2026 14:55
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants