File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ ENV NODE_ENV=production
2424
2525EXPOSE 4000
2626
27+ HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
28+ CMD wget --no-verbose --tries=1 --spider http://localhost:4000/health || exit 1
29+
2730WORKDIR /app/apps/api
2831
2932CMD ["bun" , "run" , "src/index.ts" ]
Original file line number Diff line number Diff line change @@ -61,15 +61,13 @@ const app = new Elysia()
6161 const method = request . method ;
6262 const startTime = Date . now ( ) ;
6363
64- // Extract route from path (e.g., "/rpc/websites.list" -> "websites.list")
6564 const route = path . startsWith ( "/rpc/" ) ? path . slice ( 5 ) : path ;
6665 const { span, activeContext } = startRequestSpan (
6766 method ,
6867 request . url ,
6968 route
7069 ) ;
7170
72- // Store span, context, and start time in Elysia store
7371 store . tracing = {
7472 span,
7573 activeContext,
@@ -130,7 +128,6 @@ const app = new Elysia()
130128
131129 return response ?? new Response ( "Not Found" , { status : 404 } ) ;
132130 } catch ( error ) {
133- // Record ORPC errors in OpenTelemetry
134131 if ( error instanceof ORPCError ) {
135132 recordORPCError ( {
136133 code : error . code ,
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ export const createRPCContext = async (opts: { headers: Headers }) => {
1313 headers : opts . headers ,
1414 } ) ;
1515
16- console . log ( "createRPCContext" , session ) ;
17- console . log ( "createRPCContext" , opts . headers ) ;
1816 return {
1917 db,
2018 auth,
You can’t perform that action at this time.
0 commit comments