Skip to content

Commit 83253bd

Browse files
chatbot-rag-app: removes docker workaround for OTEL_SDK_DISABLED
Signed-off-by: Adrian Cole <[email protected]>
1 parent 72835b0 commit 83253bd

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

example-apps/chatbot-rag-app/Dockerfile

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ EXPOSE 4000
2424
# Default to disabling instrumentation, can be overridden to false in
2525
# docker invocations to reenable.
2626
ENV OTEL_SDK_DISABLED=true
27+
ENTRYPOINT [ "opentelemetry-instrument" ]
2728

28-
# TODO remove custom entrypoint when EDOT Python >0.7.0 is released.
29-
RUN echo 'if [ "${OTEL_SDK_DISABLED:-true}" == "false" ]; \
30-
then \
31-
opentelemetry-instrument $@; \
32-
else \
33-
exec $@; \
34-
fi' > entrypoint.sh
35-
ENTRYPOINT [ "bash", "-eu", "./entrypoint.sh" ]
3629
CMD [ "python", "api/app.py" ]

example-apps/chatbot-rag-app/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,4 +531,4 @@ opentelemetry-instrumentation-sqlalchemy==0.51b0
531531
opentelemetry-instrumentation-system-metrics==0.51b0
532532
opentelemetry-instrumentation-tortoiseorm==0.51b0
533533
opentelemetry-instrumentation-urllib3==0.51b0
534-
elastic-opentelemetry-instrumentation-openai==0.6.0
534+
elastic-opentelemetry-instrumentation-openai==0.6.1

0 commit comments

Comments
 (0)