Skip to content

chatbot-rag-app: use Elastic Distribution of OpenTelemetry (EDOT) #369

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

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

codefromthecrypt
Copy link
Collaborator

This updates the requirements.txt to include Elastic Distribution of OpenTelemetry (EDOT) Python.

When OTEL_SDK_DISABLED=false, logs, metrics and traces are exported to an OTLP endpoint, which by default points to the Elastic APM server port 8200.

For example, this is a trace for OpenAI and if you click on the span circled, you can see underlying request/response data for the chat request

image

EDOT Python at the moment includes support for OpenAI, so will have portable data for requests using ChatOpenAI. Data is still collected for other options like bedrock and vertex, just not in a portable form.

For example, this is a trace including bedrock, but doesn't have logs for the LLM request/response
image

Watch EDOT Python releases for updates which can expand this list.

Special thanks to @xrmx @joemcelroy @anuraaga @ezimuel @EvelienSchellekens @bshetti who all contributed to this in implementation or q/a

@codefromthecrypt codefromthecrypt merged commit 7f46e80 into main Jan 8, 2025
2 checks passed
@codefromthecrypt codefromthecrypt deleted the chatbot-rag-app branch January 8, 2025 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants