Skip to content

Feature - OpenTelemetry Auto-Instrumentation / DuckDB Library Update #1708

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: dev
Choose a base branch
from
Prev Previous commit
Next Next commit
node-service auto-instrumentation
  • Loading branch information
Connell, Joseph committed May 25, 2025
commit c1df04c245d5c9963a53bdbd19542231f7f425c5
11 changes: 9 additions & 2 deletions deploy/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,14 @@ WORKDIR /lowcoder/node-service/app/
RUN yarn --immutable
RUN yarn build

# Copy startup script and OpenTelemetry config
# --- ADDED: Install OpenTelemetry dependencies for Node.js service ---
RUN yarn add \
@opentelemetry/api \
@opentelemetry/auto-instrumentations-node

# Copy startup script
COPY deploy/docker/node-service/entrypoint.sh /lowcoder/node-service/entrypoint.sh
COPY deploy/docker/node-service/init.sh /lowcoder/node-service/init.sh
COPY deploy/docker/node-service/otel-config.js /lowcoder/node-service/otel-config.js
RUN chmod +x /lowcoder/node-service/*.sh

##
Expand Down Expand Up @@ -110,6 +114,9 @@ RUN apt-get update \

COPY --from=build-node-service /lowcoder/node-service /lowcoder/node-service

#Enable OpenTelemetry node agent
ENV NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register"

EXPOSE 6060
CMD [ "/bin/sh", "/lowcoder/node-service/entrypoint.sh" ]

Expand Down
3 changes: 0 additions & 3 deletions deploy/docker/node-service/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,4 @@ if [ "$(id -u)" -eq 0 ]; then
fi
echo

# Require OpenTelemetry configuration
export NODE_OPTIONS="-r ./otel-config.js"

exec $GOSU yarn start
139 changes: 0 additions & 139 deletions deploy/docker/node-service/otel-config.js

This file was deleted.