-
Notifications
You must be signed in to change notification settings - Fork 436
feat(litellm): [MLOB-2326] instrument route request proxy method #13378
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
base: main
Are you sure you want to change the base?
Conversation
|
Bootstrap import analysisComparison of import times between this PR and base. SummaryThe average import time from this PR is: 231 ± 2 ms. The average import time from base is: 233 ± 2 ms. The import time difference between this PR and base is: -2.25 ± 0.1 ms. Import time breakdownThe following import paths have shrunk:
|
BenchmarksBenchmark execution time: 2025-05-13 18:41:08 Comparing candidate commit c1eddeb in PR branch Found 0 performance improvements and 1 performance regressions! Performance is the same for 522 metrics, 5 unstable metrics. scenario:iast_aspects-ospathdirname_aspect
|
Datadog Summary✅ Code Quality ✅ Code Security ✅ Dependencies Was this helpful? Give us feedback! |
This PR implements APM tracing for LiteLLM's
route_request
proxy method which is called within both thecompletion
andchat_completion
server methods. The host and model name is extracted from the proxy request and attached to the APM span.I ran the following curl command to give me a trace for calling the chat_completion method.
I ran the following curl command to give me a trace for calling the completion method (i.e. text completions).
Checklist
Reviewer Checklist