-
Notifications
You must be signed in to change notification settings - Fork 330
fix(llmobs): openai-java payload mapping for responses, tool metadata, and prompt tracking #10644
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
Open
ygree
wants to merge
41
commits into
master
Choose a base branch
from
ygree/llmobs-systest-fixes
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
cbd6226
llmobs: set model tag even when llmobs disabled
ygree 4f27673
Set metadata.stream tag no matter it's true or false
ygree d128d6b
Set chat/completion CACHE_READ_INPUT_TOKENS tag
ygree 3fc5ceb
Set error nad error_type tags
ygree 021a9d1
Use "" instead of null for the role in CompletionDecorator to comply …
ygree 0637931
Use "" instead of null for the content to comply with TestOpenAiLlmIn…
ygree 0cb41e1
Add missing metatadata.tool_choice
ygree a42f8aa
Add missing tool_definitions
ygree 6e10255
Add source:integration tag
ygree 34f3a07
Add missing _dd attribute to the llmobs span event
ygree a0c1139
Add missing error tags
ygree effc343
Remove error from the llmobs span event. It must be part of meta block
ygree c0e3876
Add missing meta.text.verbosity
ygree b000770
Add summaryText and encrypted_content
ygree 53471a2
Add missing tool_calls and tool_results for responses
ygree 2207c46
Always set stream param to produce the same request body to be aligne…
ygree ca6e2d1
Add OpenAI prompt-tracking reconstruction for responses (input.prompt…
ygree 7d683b6
Fix OpenAI Responses prompt tracking to use response instructions fir…
ygree 2c17ddc
Set LLMObs error-path defaults in Java to always emit model_name and …
ygree ad3b782
Add OpenAI Responses tool definition extraction to populate LLMObs to…
ygree 1810327
Fix ChatCompletionServiceTest
ygree 46221e4
Extract JsonValueUtils
ygree 61ad667
Refactor OpenAI responses instrumentation to reuse ToolCallExtractor …
ygree f0957b7
Fix test assertions
ygree f3f1f75
Add integration tag
ygree 668e955
Add ddtrace.verion
ygree d57402e
Improve test assertions
ygree a3051e3
Merge branch 'master' into ygree/llmobs-systest-fixes
ygree 0c879ba
Fix format
ygree f4e3a8b
Include input messages when instructions are present in prompt tracking
ygree 028d64f
Fix instructions role to system in prompt tracking
ygree 82f4303
Merge branch 'master' into ygree/llmobs-systest-fixes
ygree 717a8f0
fix LLMObsSpanMapperTest
ygree 8420f0a
Catch exception not throwable
ygree 91707fa
Add JsonValueUtilsTest
ygree 3d12515
Test that on HTTP error, the OpenAI response span retains model_name …
ygree 576cec7
Add "create response with prompt tracking" test to improve coverage o…
ygree ba0cb27
Add "create response with custom tool call" test to improve coverage …
ygree 8be92d7
Prevent NPE when tag value is null
ygree 1036ed4
Replace catch Throwable with catch Exception
ygree 9911c51
responseCreateParamsWithPromptTracking support both known and unknown…
ygree File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
dd-java-agent/instrumentation/openai-java/openai-java-3.0/build.gradle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| apply from: "$rootDir/gradle/java.gradle" | ||
|
|
||
| def minVer = '3.0.0' | ||
| def minVer = '3.0.1' | ||
|
|
||
| muzzle { | ||
| pass { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ResponseTextConfig
fun verbosity(): Optional<Verbosity>was added in3.0.1openai/openai-java@c1de354#diff-6b385fb153d457757ba112e6117593cb59da6af308cce0f9b6f26e3885befc6cR73