Skip to content
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

chore(llmobs): migrate span payload structure to meet new evp updates #9546

Merged
merged 4 commits into from
Jun 17, 2024

Conversation

Yun-Kim
Copy link
Contributor

@Yun-Kim Yun-Kim commented Jun 13, 2024

This PR updates the structure of LLMObs span payloads to meet the new LLMObs evp public API requirements.

Existing tests should cover this change, and this is a completely internal change meaning there are no public-facing changes.

Checklist

  • Change(s) are motivated and described in the PR description
  • Testing strategy is described if automated tests are not included in the PR
  • Risks are described (performance impact, potential for breakage, maintainability)
  • Change is maintainable (easy to change, telemetry, documentation)
  • Library release note guidelines are followed or label changelog/no-changelog is set
  • Documentation is included (in-code, generated user docs, public corp docs)
  • Backport labels are set (if applicable)
  • If this PR changes the public interface, I've notified @DataDog/apm-tees.

Reviewer Checklist

  • Title is accurate
  • All changes are related to the pull request's stated goal
  • Description motivates each change
  • Avoids breaking API changes
  • Testing strategy adequately addresses listed risks
  • Change is maintainable (easy to change, telemetry, documentation)
  • Release note makes sense to a user of the library
  • Author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment
  • Backport labels are set in a manner that is consistent with the release branch maintenance policy

@Yun-Kim Yun-Kim requested a review from a team as a code owner June 13, 2024 21:30
@datadog-dd-trace-py-rkomorn
Copy link

datadog-dd-trace-py-rkomorn bot commented Jun 13, 2024

Datadog Report

Branch report: yunkim/llmobs-change-span-payloads
Commit report: 44d0566
Test service: dd-trace-py

✅ 0 Failed, 898 Passed, 39489 Skipped, 39m 29.88s Total duration (56m 18.22s time saved)

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 10.17%. Comparing base (3b81c75) to head (de4e3d8).

Files Patch % Lines
ddtrace/llmobs/_writer.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #9546       +/-   ##
===========================================
- Coverage   69.05%   10.17%   -58.88%     
===========================================
  Files        1336     1304       -32     
  Lines      126231   124193     -2038     
===========================================
- Hits        87168    12640    -74528     
- Misses      39063   111553    +72490     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pr-commenter
Copy link

pr-commenter bot commented Jun 13, 2024

Benchmarks

Benchmark execution time: 2024-06-17 20:39:20

Comparing candidate commit 63e2136 in PR branch yunkim/llmobs-change-span-payloads with baseline commit 31e2180 in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 221 metrics, 9 unstable metrics.

@Yun-Kim Yun-Kim enabled auto-merge (squash) June 17, 2024 17:53
@Yun-Kim Yun-Kim added the changelog/no-changelog A changelog entry is not required for this PR. label Jun 17, 2024
Copy link
Contributor

@sabrenner sabrenner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm for submitting spans with new evp structure!

ddtrace/llmobs/_writer.py Show resolved Hide resolved
@Yun-Kim Yun-Kim merged commit 0fb7afa into main Jun 17, 2024
113 of 119 checks passed
@Yun-Kim Yun-Kim deleted the yunkim/llmobs-change-span-payloads branch June 17, 2024 21:57
tabgok pushed a commit that referenced this pull request Jul 11, 2024
…#9546)

This PR updates the structure of LLMObs span payloads to meet the new
LLMObs evp public API requirements.

Existing tests should cover this change, and this is a completely
internal change meaning there are no public-facing changes.

## Checklist

- [x] Change(s) are motivated and described in the PR description
- [x] Testing strategy is described if automated tests are not included
in the PR
- [x] Risks are described (performance impact, potential for breakage,
maintainability)
- [x] Change is maintainable (easy to change, telemetry, documentation)
- [x] [Library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html)
are followed or label `changelog/no-changelog` is set
- [x] Documentation is included (in-code, generated user docs, [public
corp docs](https://github.com/DataDog/documentation/))
- [x] Backport labels are set (if
[applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))
- [x] If this PR changes the public interface, I've notified
`@DataDog/apm-tees`.

## Reviewer Checklist

- [x] Title is accurate
- [x] All changes are related to the pull request's stated goal
- [x] Description motivates each change
- [x] Avoids breaking
[API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces)
changes
- [x] Testing strategy adequately addresses listed risks
- [x] Change is maintainable (easy to change, telemetry, documentation)
- [x] Release note makes sense to a user of the library
- [x] Author has acknowledged and discussed the performance implications
of this PR as reported in the benchmarks PR comment
- [x] Backport labels are set in a manner that is consistent with the
[release branch maintenance
policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog/no-changelog A changelog entry is not required for this PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants