-
Notifications
You must be signed in to change notification settings - Fork 360
feat(llmobs): implement multi-tenant routing context support #7158
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: master
Are you sure you want to change the base?
feat(llmobs): implement multi-tenant routing context support #7158
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #7158 +/- ##
==========================================
- Coverage 84.48% 83.81% -0.68%
==========================================
Files 523 522 -1
Lines 22448 22413 -35
==========================================
- Hits 18966 18786 -180
- Misses 3482 3627 +145 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@codex review |
Overall package sizeSelf size: 4.4 MB Dependency sizes| name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 2.0.0 | 68.46 kB | 797.03 kB | | dc-polyfill | 0.1.10 | 26.73 kB | 26.73 kB |🤖 This report was automatically generated by heaviest-objects-in-the-universe |
|
To use Codex here, create a Codex account and connect to github. |
|
…f no routing context is available.
BenchmarksBenchmark execution time: 2025-12-23 10:23:50 Comparing candidate commit 059c462 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 289 metrics, 31 unstable metrics. |
…hance withRoutingContext documentation; add test for empty ddApiKey
What does this PR do?
Adds multi-tenant API key support for LLM Observability, enabling platforms like Dust.tt to route LLMObs telemetry to different Datadog organizations from a single process.
New API:
Flow:
Key changes:
withRoutingContext(options, fn)method to LLMObs SDK using AsyncLocalStorageBaseLLMObsWriterto use a multi-buffer architecture (one buffer perapiKey:sitecombination)Motivation
Multi-tenant AI platforms (like Dust.tt) need to send LLM Observability data to their customers' Datadog organizations rather than a single shared organization. This enables:
Plugin Checklist
Additional Notes