Zachary Blasczyk
11/08/2024, 11:51 PMnext build
Seems to be breaking the import-in-the-middle that
NODE_OPTIONS: "--require=@opentelemetry/auto-instrumentations-node/register"
requires.
I also see
experimental-loader=@opentelemetry/instrumentation/hook.mjs
per https://github.com/open-telemetry/opentelemetry-js/blob/4b5c21cede4ccbe2529f57ee61f1913b2a31ba20/doc/esm-support.md#instrumentatio[…]equired-for-esm
but that is nowhere in my container.Zachary Blasczyk
11/08/2024, 11:53 PM...
COPY apps/webservice/package.json ./apps/webservice/package.json
RUN pnpm install --frozen-lockfile
COPY . .
RUN turbo build --filter=...@ctrlplane/webservice
FROM base AS runner
WORKDIR /app
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nodejs
USER nodejs
COPY --from=installer --chown=nodejs:nodejs /app/apps/webservice/.next/standalone ./
COPY --from=installer --chown=nodejs:nodejs /app/apps/webservice/.next/static ./apps/webservice/.next/static
COPY --from=installer --chown=nodejs:nodejs /app/apps/webservice/public ./apps/webservice/public
EXPOSE 3000
ENV PORT=3000
ENV AUTH_TRUST_HOST=true
ENV NODE_ENV=production
ENV NODE_PATH=/app/apps/webservice/node_modules
ENV HOSTNAME=0.0.0.0
CMD ["node", "apps/webservice/server.js"]
I drop a bunch of traces, specifically the pg and pg.pool traces I am interested in.Zachary Blasczyk
11/08/2024, 11:53 PMZachary Blasczyk
11/09/2024, 12:02 AMVishal Sharma
11/09/2024, 2:44 AMZachary Blasczyk
11/09/2024, 3:35 AM