Skip to content

Commit 11dde4d

Browse files
Update ai-mcp-chat.controller.ts
1 parent 21d6303 commit 11dde4d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/server/api/src/app/ai/chat/ai-mcp-chat.controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ export const aiMCPChatController: FastifyPluginAsyncTypebox = async (app) => {
225225
try {
226226
await handleNewMessage(request, reply);
227227
} finally {
228+
// Flush traces to Langfuse (critical for Fastify)
228229
const spanProcessor = getLangfuseSpanProcessor();
229230
if (spanProcessor) {
230231
try {

0 commit comments

Comments
 (0)