-
Couldn't load subscription status.
- Fork 1.9k
[Kernel] [UC] UC Commit Metrics #5362
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
base: master
Are you sure you want to change the base?
[Kernel] [UC] UC Commit Metrics #5362
Conversation
| * <p>Collects timing metrics for commit operations and generates reports for successful and failed | ||
| * commits. | ||
| */ | ||
| public class UcCommitTelemetry { |
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.
My goal here is to be VERY succint -- I want the metrics collection and metrics result and the overall report to succinctly be in one class
| } | ||
|
|
||
| @SuppressWarnings("unchecked") | ||
| public <T, E extends Exception> T timeChecked(ThrowingSupplier<T, E> operation) throws E { |
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.
I want to be able to time a method that throws a checked exception E, without having to catch the aprent Exception type. See:
| public static <T, E extends Exception> T timeCheckedOperation( |
93bb691 to
867bc5d
Compare
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.
approach makes sense!
kernel/kernel-api/src/main/java/io/delta/kernel/internal/metrics/Timer.java
Outdated
Show resolved
Hide resolved
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.
TODO -- Json Serialization tests
🥞 Stacked PR
Use this link to review incremental changes.
Which Delta project/connector is this regarding?
Description
How was this patch tested?
Does this PR introduce any user-facing changes?