(ctx context.Context, req *aibridge.InterceptionRecordEnded)
| 84 | } |
| 85 | |
| 86 | func (r *SQLiteRecorder) RecordInterceptionEnded(ctx context.Context, req *aibridge.InterceptionRecordEnded) error { |
| 87 | _, err := r.stmtUpdateInterception.ExecContext(ctx, req.EndedAt, req.ID) |
| 88 | if err != nil { |
| 89 | r.logger.Warn(ctx, "failed to record interception end", slog.Error(err)) |
| 90 | } |
| 91 | return err |
| 92 | } |
| 93 | |
| 94 | func (r *SQLiteRecorder) RecordTokenUsage(ctx context.Context, req *aibridge.TokenUsageRecord) error { |
| 95 | // Build metadata, merging extra token types. |