-
Notifications
You must be signed in to change notification settings - Fork 63
Streaming telemetry implementation #971
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: main
Are you sure you want to change the base?
Conversation
- Create TaskRunMetrics class for individual task timing and error tracking - Enhance TasksRunner to capture start/end times and errors for each task - Add addTaskTelemetry method to TelemetryProcessor - Update MetadataDumper to pass telemetry processor to TasksRunner - Add comprehensive tests for new telemetry functionality - Maintain backward compatibility with existing telemetry system This enhancement provides granular visibility into individual task execution performance and error details, complementing the existing overall runtime metrics.
- Add EventType.METADATA for streaming telemetry events - Implement builder pattern for ClientTelemetry - Add TelemetryWriteStrategy interface with process/flush methods - Implement DiskTelemetryWriteStrategy and NoOpTelemetryWriteStrategy - Inject FileSystem into TelemetryProcessor for ZIP file writing - Update TelemetryProcessor to support immediate event processing - Add setFileSystem() method to enable ZIP-based telemetry writing
Code Coverage Report
|
.../main/java/com/google/edwmigration/dumper/application/dumper/DiskTelemetryWriteStrategy.java
Show resolved
Hide resolved
.../main/java/com/google/edwmigration/dumper/application/dumper/DiskTelemetryWriteStrategy.java
Outdated
Show resolved
Hide resolved
.../main/java/com/google/edwmigration/dumper/application/dumper/DiskTelemetryWriteStrategy.java
Outdated
Show resolved
Hide resolved
.../main/java/com/google/edwmigration/dumper/application/dumper/DiskTelemetryWriteStrategy.java
Show resolved
Hide resolved
...src/main/java/com/google/edwmigration/dumper/application/dumper/metrics/ClientTelemetry.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/google/edwmigration/dumper/application/dumper/metrics/ClientTelemetry.java
Outdated
Show resolved
Hide resolved
dumper/app/src/main/java/com/google/edwmigration/dumper/application/dumper/TasksRunner.java
Outdated
Show resolved
Hide resolved
...src/main/java/com/google/edwmigration/dumper/application/dumper/metrics/ClientTelemetry.java
Outdated
Show resolved
Hide resolved
| DUMPER_RUN_METRICS | ||
| DUMPER_RUN_START, | ||
| DUMPER_RUN_END, | ||
| METADATA, |
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.
Let's use event name.
| import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
|
||
| /** | ||
| * @author kakha keep immutable. TaskRunner is multi-threaded, so we need to make it thread-safe. |
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.
Let's add java doc to describe the meaning of the class.
.../src/main/java/com/google/edwmigration/dumper/application/dumper/metrics/TaskRunMetrics.java
Outdated
Show resolved
Hide resolved
.../src/main/java/com/google/edwmigration/dumper/application/dumper/metrics/TaskRunMetrics.java
Outdated
Show resolved
Hide resolved
.../src/main/java/com/google/edwmigration/dumper/application/dumper/metrics/TaskRunMetrics.java
Outdated
Show resolved
Hide resolved
.../main/java/com/google/edwmigration/dumper/application/dumper/DiskTelemetryWriteStrategy.java
Outdated
Show resolved
Hide resolved
.../main/java/com/google/edwmigration/dumper/application/dumper/DiskTelemetryWriteStrategy.java
Show resolved
Hide resolved
|
This PR is stale because it has been open 35 days with no activity. Remove "stale" label or comment or this will be closed in 14 days. |
No description provided.