File tree 3 files changed +3
-10
lines changed
example-apps/chatbot-rag-app
3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,6 @@ EXPOSE 4000
24
24
# Default to disabling instrumentation, can be overridden to false in
25
25
# docker invocations to reenable.
26
26
ENV OTEL_SDK_DISABLED=true
27
+ ENTRYPOINT [ "opentelemetry-instrument" ]
27
28
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" ]
36
29
CMD [ "python" , "api/app.py" ]
Original file line number Diff line number Diff line change 24
24
initContainers :
25
25
- name : create-index
26
26
image : &image ghcr.io/elastic/elasticsearch-labs/chatbot-rag-app:latest
27
- command : &command [ "bash", "-eu", "./entrypoint.sh " ] # match image
27
+ command : &command [ "opentelemetry-instrument " ] # match image
28
28
args : [ "flask", "create-index" ]
29
29
# This recreates your configmap based on your .env file:
30
30
# kubectl create configmap chatbot-rag-app-env --from-env-file=.env
Original file line number Diff line number Diff line change @@ -531,4 +531,4 @@ opentelemetry-instrumentation-sqlalchemy==0.51b0
531
531
opentelemetry-instrumentation-system-metrics == 0.51b0
532
532
opentelemetry-instrumentation-tortoiseorm == 0.51b0
533
533
opentelemetry-instrumentation-urllib3 == 0.51b0
534
- elastic-opentelemetry-instrumentation-openai == 0.6.0
534
+ elastic-opentelemetry-instrumentation-openai == 0.6.1
You can’t perform that action at this time.
0 commit comments