LLM Obs SDK Mapper by gary-huang · Pull Request #8372 · DataDog/dd-trace-java · GitHub
Skip to content

LLM Obs SDK Mapper#8372

Merged
nayeem-kamal merged 20 commits into
gary/llmobs-sdk-mergefrom
gary/add-llm-obs-writer
Jul 8, 2025
Merged

LLM Obs SDK Mapper#8372
nayeem-kamal merged 20 commits into
gary/llmobs-sdk-mergefrom
gary/add-llm-obs-writer

Conversation

@gary-huang

@gary-huang gary-huang commented Feb 12, 2025

Copy link
Copy Markdown
Contributor

What Does This Do

Adds the remote mapper and payload definitions for LLMObs spans as well as adding the remote intake api setup for the LLMObs backend endpoint.

Motivation

Support manual sending of LLMObs spans from within the tracer.

Additional Notes

Additional tests will follow in the feature branch.

Contributor Checklist

Jira ticket: [PROJ-IDENT]

@gary-huang gary-huang force-pushed the gary/impl-llm-obs-api branch 2 times, most recently from 680ec94 to b1d7aeb Compare February 13, 2025 07:39
@gary-huang gary-huang force-pushed the gary/add-llm-obs-writer branch from 113bf8c to 9052dc4 Compare February 13, 2025 07:41
@pr-commenter

pr-commenter Bot commented Feb 13, 2025

Copy link
Copy Markdown

@gary-huang gary-huang force-pushed the gary/impl-llm-obs-api branch from b1d7aeb to 3bcbe81 Compare February 14, 2025 05:35
@gary-huang gary-huang force-pushed the gary/add-llm-obs-writer branch from 9052dc4 to dd8c1ed Compare February 14, 2025 09:13
@gary-huang gary-huang force-pushed the gary/impl-llm-obs-api branch from 3bcbe81 to c437b9c Compare February 19, 2025 14:47
@gary-huang gary-huang force-pushed the gary/add-llm-obs-writer branch 2 times, most recently from 88cbf86 to ce8a6d3 Compare February 19, 2025 17:32
@gary-huang gary-huang force-pushed the gary/impl-llm-obs-api branch from c437b9c to 8247b74 Compare February 19, 2025 17:50
@gary-huang gary-huang force-pushed the gary/add-llm-obs-writer branch 2 times, most recently from fc30660 to 061b18d Compare February 19, 2025 18:18
@gary-huang gary-huang force-pushed the gary/impl-llm-obs-api branch from 8247b74 to 871d358 Compare February 20, 2025 06:56
@gary-huang gary-huang force-pushed the gary/add-llm-obs-writer branch 2 times, most recently from 5c305b9 to 9ee77d9 Compare February 20, 2025 15:50
@gary-huang gary-huang force-pushed the gary/impl-llm-obs-api branch 6 times, most recently from 94136c5 to 7064f57 Compare February 20, 2025 23:13
@gary-huang gary-huang force-pushed the gary/add-llm-obs-writer branch from 9ee77d9 to 0b4f8a8 Compare February 24, 2025 19:38
@gary-huang gary-huang force-pushed the gary/impl-llm-obs-api branch from 7064f57 to 9cb3e0a Compare February 28, 2025 05:41
@gary-huang gary-huang force-pushed the gary/add-llm-obs-writer branch from 0b4f8a8 to 738eb77 Compare March 4, 2025 16:17
@gary-huang gary-huang force-pushed the gary/impl-llm-obs-api branch 3 times, most recently from f9cb23e to 64c94e5 Compare March 5, 2025 19:23
@gary-huang gary-huang force-pushed the gary/add-llm-obs-writer branch from f858e30 to fb0af52 Compare April 11, 2025 01:54
@gary-huang gary-huang force-pushed the gary/add-llm-obs-writer branch from fb0af52 to e0b4510 Compare April 21, 2025 14:04
Base automatically changed from gary/impl-llm-obs-api to gary/llmobs-sdk-merge June 4, 2025 19:35
@gary-huang gary-huang changed the title writer impl LLM Obs SDK Mapper Jun 26, 2025
@nayeem-kamal nayeem-kamal marked this pull request as ready for review July 3, 2025 14:14
@nayeem-kamal nayeem-kamal requested review from a team as code owners July 3, 2025 14:14
@nayeem-kamal nayeem-kamal requested review from daniel-mohedano and mcculls and removed request for daniel-mohedano and mcculls July 3, 2025 14:14
@nayeem-kamal nayeem-kamal merged commit 5ca9c84 into gary/llmobs-sdk-merge Jul 8, 2025
294 of 299 checks passed
@nayeem-kamal nayeem-kamal deleted the gary/add-llm-obs-writer branch July 8, 2025 15:51
gary-huang added a commit that referenced this pull request Jul 9, 2025
* add APIs for llm obs

* add llm message class to support llm spans

* add llm message class to support llm spans

* impl llmobs agent and llmobs apis

* support llm messages with tool calls

* handle default model name and provider

* rm unneeded file

* impl llmobs agent and llmobs apis

* impl llmobs agent

* working writer

* add support for llm message and tool calls

* cleaned up whitespace

* resolve merge conflicts

* remaining merge conflicts

* fix bad method call

* fixed llmobs intake creation if llmobs not enabled

* removed print statements

* added tests for llmobsspanmapper

* fixed coverage for tags

---------

Co-authored-by: Nayeem Kamal <nayeem.kamal@datadoghq.com>
nayeem-kamal added a commit that referenced this pull request Jul 9, 2025
* add APIs for llm obs sdk (#8135)

* add APIs for llm obs

* add llm message class to support llm spans

* follow java convention of naming Id instead of ID

* add codeowners

* implement LLM Obs SDK spans APIs (#8390)

* add APIs for llm obs

* add llm message class to support llm spans

* add llm message class to support llm spans

* impl llmobs agent and llmobs apis

* support llm messages with tool calls

* handle default model name and provider

* rm unneeded file

* spotless

* add APIs for llm obs sdk (#8135)

* add APIs for llm obs

* add llm message class to support llm spans

* follow java convention of naming Id instead of ID

* add codeowners

* rename ID to Id according to java naming conventions

* Undo change to integrations-core submodule

* fix build gradle

* rm empty line

* fix test

* LLM Obs SDK Mapper (#8372)

* add APIs for llm obs

* add llm message class to support llm spans

* add llm message class to support llm spans

* impl llmobs agent and llmobs apis

* support llm messages with tool calls

* handle default model name and provider

* rm unneeded file

* impl llmobs agent and llmobs apis

* impl llmobs agent

* working writer

* add support for llm message and tool calls

* cleaned up whitespace

* resolve merge conflicts

* remaining merge conflicts

* fix bad method call

* fixed llmobs intake creation if llmobs not enabled

* removed print statements

* added tests for llmobsspanmapper

* fixed coverage for tags

---------

Co-authored-by: Nayeem Kamal <nayeem.kamal@datadoghq.com>

* updated to master submodule

* LLM Obs SDK use context API for parent children span linkage (#8711)

* add APIs for llm obs

* add llm message class to support llm spans

* add llm message class to support llm spans

* impl llmobs agent and llmobs apis

* support llm messages with tool calls

* handle default model name and provider

* rm unneeded file

* impl llmobs agent and llmobs apis

* impl llmobs agent

* working writer

* add support for llm message and tool calls

* impl llmobs agent and llmobs apis

* use new ctx api to track parent span

* cleaned up whitespace

* resolve merge conflicts

* remaining merge conflicts

* fix bad method call

* fixed llmobs intake creation if llmobs not enabled

* removed print statements

* ran spotless

* added tests for llmobsspanmapper

* fixed coverage for tags

---------

Co-authored-by: Nayeem Kamal <nayeem.kamal@datadoghq.com>
Co-authored-by: Nayeem Kamal <kamal.nayeem12@gmail.com>

* LLM Obs SDK evaluation metrics submission (#8688)

* add APIs for llm obs

* add llm message class to support llm spans

* add llm message class to support llm spans

* impl llmobs agent and llmobs apis

* support llm messages with tool calls

* handle default model name and provider

* rm unneeded file

* impl llmobs agent and llmobs apis

* impl llmobs agent

* working writer

* add support for llm message and tool calls

* impl llmobs agent and llmobs apis

* use new ctx api to track parent span

* add api for evals

* working impl supporting both agentless and agent

* handle null tags and default to default ml app if null or empty string provided in the override

* cleaned up whitespace

* resolve merge conflicts

* remaining merge conflicts

* fix bad method call

* fixed llmobs intake creation if llmobs not enabled

* removed print statements

* ran spotless

* ran spotless

* added tests for llmobsspanmapper

* fixed coverage for tags

---------

Co-authored-by: Nayeem Kamal <nayeem.kamal@datadoghq.com>
Co-authored-by: Nayeem Kamal <kamal.nayeem12@gmail.com>

* fix CODEOWNERS

---------

Co-authored-by: Nayeem Kamal <nayeem.kamal@datadoghq.com>
Co-authored-by: Nayeem Kamal <kamal.nayeem12@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants