@@ -12,7 +12,7 @@ import { cors } from 'hono/cors';
1212import { HTTPException } from 'hono/http-exception' ;
1313import { requestId } from 'hono/request-id' ;
1414import type { StatusCode } from 'hono/utils/http-status' ;
15- import { defaultBatchProcessor } from './instrumentation' ;
15+ import { flushBatchProcessor } from './instrumentation' ;
1616import { getLogger } from './logger' ;
1717import { apiKeyAuth } from './middleware/api-key-auth' ;
1818import { setupOpenAPIRoutes } from './openapi' ;
@@ -263,19 +263,19 @@ function createExecutionHono(
263263
264264 app . use ( '/tenants/*' , async ( _c , next ) => {
265265 await next ( ) ;
266- await defaultBatchProcessor . forceFlush ( ) ;
266+ await flushBatchProcessor ( ) ;
267267 } ) ;
268268 app . use ( '/agents/*' , async ( _c , next ) => {
269269 await next ( ) ;
270- await defaultBatchProcessor . forceFlush ( ) ;
270+ await flushBatchProcessor ( ) ;
271271 } ) ;
272272 app . use ( '/v1/*' , async ( _c , next ) => {
273273 await next ( ) ;
274- await defaultBatchProcessor . forceFlush ( ) ;
274+ await flushBatchProcessor ( ) ;
275275 } ) ;
276276 app . use ( '/api/*' , async ( _c , next ) => {
277277 await next ( ) ;
278- await defaultBatchProcessor . forceFlush ( ) ;
278+ await flushBatchProcessor ( ) ;
279279 } ) ;
280280
281281 const baseApp = new Hono ( ) ;
0 commit comments