-
Notifications
You must be signed in to change notification settings - Fork 218
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
[OPIK-287] Add project level aggregations #894
Merged
idoberko2
merged 22 commits into
main
from
thiagohora/OPIK-287_add_project_level_aggregations
Dec 23, 2024
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
7a6db00
[OPIK-446] Add durartion to trace_span
thiagohora 4b3dd68
Fix calc
thiagohora f4da0e3
Fix pr review
thiagohora 4b441da
[OPIK-446] Add duration metric
thiagohora 2ca8f19
Code format
thiagohora 2ddca96
Fix tests
thiagohora 5ad8cef
Fix condition
thiagohora 99d87f8
[OPIK-287] Add project level aggregations
thiagohora 4114eb0
OPIK-287 sort by last updated trace at failing test
idoberko2 94625d9
OPIK-287 sort by last updated trace at failing test green
idoberko2 cd16176
OPIK-287 refactor
idoberko2 f4511b2
OPIK-287 restored persisted last updated trace at assertion
idoberko2 495a522
OPIK-287 fix tests
idoberko2 ebef20c
OPIK-287 fix tests
idoberko2 ef8cc20
OPIK-287 fix tests
idoberko2 d47beac
Revert "OPIK-287 fix tests"
idoberko2 7295cf4
OPIK-287 fix logical conflicts after rebase
idoberko2 e173946
OPIK-287 cleanup
idoberko2 ab0f8bb
OPIK-287 refactor
idoberko2 363b049
OPIK-287 PR comments
idoberko2 7d0cdc9
OPIK-287 PR comments
idoberko2 7a8905c
OPIK-287 PR comments
idoberko2 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 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 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 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 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 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.
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.
Monetary cost as floating type. For other aggregations such as avg, it wouldn't be that bad. But for a total, I assume is a sum, better as BigDecimal.
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.
The name is a bit misleading. This holds the average total cost of a trace in a project. This is calculated here:
opik/apps/opik-backend/src/main/java/com/comet/opik/domain/TraceDAO.java
Line 615 in ab0f8bb
In addition, you can see that the coverage for this logic asserts on an average:
opik/apps/opik-backend/src/test/java/com/comet/opik/api/resources/v1/priv/ProjectsResourceTest.java
Lines 1358 to 1361 in ab0f8bb
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.
Can you rename it to something more significative and less confusing then? e.g:
avgTotalEstimatedCost
or similar.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.
These are arguable not clear names, in comparison with other aggregations such as
lastUpdatedTraceAt
. On the other hand,List<FeedbackScoreAverage> feedbackScores,
already exists inExperiments
.Not a blocker so far.