Add in LLM Observability Prompt Tracking API - #12161
Conversation
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 21b2f2e0ba
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
🎯 Code Coverage (details) 🔗 Commit SHA: dbe9f51 | Docs | Datadog PR Page | Give us feedback! |
🟢 Java Benchmark SLOs — All performance SLOs passed
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
There was a problem hiding this comment.
A later prompt annotation that only adds version or tags silently resets custom RAG context and query variable keys to defaults, corrupting tracking classification for applications that enrich a prompt across multiple calls.
📊 Validated against 7 scenarios · Open Bits AI session
🤖 Datadog Autotest · Commit b387155 · What is Autotest? · @DataDog review to ask questions · Any feedback? Reach out in #autotest
…ner/llmobs-manual-prompt-tracking
What Does This Do
Adds a manual prompt track API for the LLM Observability SDK. This works by exposing a prompt object builder to pass in to a new
annotatePromptmethod. This method only applies the prompt annotation on LLM spans.Motivation
Further support parity with Node.js and Python SDKs.
Additional Notes
We'll need to follow up with allowing these to be annotated on auto-instrumented LLM spans (ie OpenAI)
Contributor Checklist
type:and (comp:orinst:) labels in addition to any other useful labelsclose,fix, or any linking keywords when referencing an issueUse
solvesinstead, and assign the PR milestone to the issueJira ticket: MLOB-7901