mirror of
https://github.com/run-llama/llama_deploy.git
synced 2026-07-15 05:08:22 -04:00
[PR #530] [MERGED] feat: Introduce tracing support for monitoring LlamaDeploy #528
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/run-llama/llama_deploy/pull/530
Author: @masci
Created: 6/4/2025
Status: ✅ Merged
Merged: 6/5/2025
Merged by: @masci
Base:
main← Head:massi/tracing📝 Commits (8)
9c6c7cefeat: add tracing support6b745a0fixdb0fddefix deps8891b13simplify import structured97da2aremove noise, simplify code8c86239update lockfile189c72fupdate docs59bb17ffix e2e tests📊 Changes
23 files changed (+2426 additions, -1522 deletions)
View changed files
📝
.taplo.toml(+5 -2)📝
docker/run_apiserver.py(+1 -1)📝
docker/run_autodeploy.py(+1 -1)➕
docs/docs/module_guides/llama_deploy/50_observability.md(+250 -0)📝
e2e_tests/apiserver/conftest.py(+1 -1)📝
llama_deploy/apiserver/__init__.py(+0 -9)📝
llama_deploy/apiserver/__main__.py(+1 -1)📝
llama_deploy/apiserver/app.py(+5 -0)📝
llama_deploy/apiserver/deployment_config_parser.py(+5 -5)📝
llama_deploy/apiserver/settings.py(+32 -0)➕
llama_deploy/apiserver/tracing.py(+237 -0)📝
llama_deploy/cli/serve.py(+1 -1)📝
llama_deploy/control_plane/server.py(+22 -6)📝
llama_deploy/message_queues/__init__.py(+5 -5)📝
llama_deploy/message_queues/base.py(+23 -13)📝
llama_deploy/services/workflow.py(+95 -67)📝
llama_deploy/types/core.py(+23 -0)📝
pyproject.toml(+7 -0)📝
tests/apiserver/routers/test_deployments.py(+1 -1)📝
tests/apiserver/routers/test_status.py(+1 -1)...and 3 more files
📄 Description
This PR introduces tracing support for LlamaDeploy. It's important to note that this is not about monitoring the workflows that are part of a deployment, rather about monitoring LlamaDeploy itself from an operations standpoint.
If you have tracing already enabled at the workflow level with something like this you don't need to enable tracing on LlamaDeploy.
Notes:
__init__.py. I think that's good in any case, the import structure was already going out of controlif TYPE_CHECKING: importpattern wherever possible🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.