Skip to content

Commit

Permalink
Added open telemetry zero code instrumentation package (#802)
Browse files Browse the repository at this point in the history
* Added open telemetry zero code instrumentation package

* This file is not needed

* Add opentelemetry agent in tool

Signed-off-by: Ritwik G <[email protected]>

---------

Signed-off-by: Ritwik G <[email protected]>
  • Loading branch information
ritwik-g authored Oct 18, 2024
1 parent bdaab9b commit 1f736cf
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 35 deletions.
35 changes: 0 additions & 35 deletions backend/gunicorn_conf.py

This file was deleted.

5 changes: 5 additions & 0 deletions docker/dockerfiles/platform.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ RUN set -e; \
# source command may not be availble in sh
. .venv/bin/activate; \
\
# Install opentelemetry for instrumentation.
pip install opentelemetry-distro opentelemetry-exporter-otlp; \
\
opentelemetry-bootstrap -a install; \
\
pdm sync --prod --no-editable; \
\
# REF: https://docs.gunicorn.org/en/stable/deploy.html#using-virtualenv
Expand Down
5 changes: 5 additions & 0 deletions docker/dockerfiles/prompt.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ RUN set -e; \
# source command may not be availble in sh
. .venv/bin/activate; \
\
# Install opentelemetry for instrumentation.
pip install opentelemetry-distro opentelemetry-exporter-otlp; \
\
opentelemetry-bootstrap -a install; \
\
pdm sync --prod --no-editable; \
\
#
Expand Down
5 changes: 5 additions & 0 deletions docker/dockerfiles/worker.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ RUN set -e; \
# source command may not be availble in sh
. .venv/bin/activate; \
\
# Install opentelemetry for instrumentation.
pip install opentelemetry-distro opentelemetry-exporter-otlp; \
\
opentelemetry-bootstrap -a install; \
\
pdm sync --prod --no-editable; \
\
[ -f cloud_requirements.txt ] && pip install -r cloud_requirements.txt || { echo "cloud_requirements.txt does not exist";}; \
Expand Down
5 changes: 5 additions & 0 deletions docker/dockerfiles/x2text.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ RUN set -e; \
# source command may not be availble in sh
. .venv/bin/activate; \
\
# Install opentelemetry for instrumentation.
pip install opentelemetry-distro opentelemetry-exporter-otlp; \
\
opentelemetry-bootstrap -a install; \
\
pdm sync --prod --no-editable; \
\
# REF: https://docs.gunicorn.org/en/stable/deploy.html#using-virtualenv
Expand Down
1 change: 1 addition & 0 deletions tools/structure/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ RUN pip install --no-cache-dir -U pip
WORKDIR /app
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install pip install opentelemetry-distro opentelemetry-exporter-otlp && opentelemetry-bootstrap -a install
# Copy the contents of your project directory into the container at /app
COPY src /app/src/
WORKDIR /app/src
Expand Down

0 comments on commit 1f736cf

Please sign in to comment.