Skip to content

Conversation

@kaxuna
Copy link
Collaborator

@kaxuna kaxuna commented Sep 18, 2025

No description provided.

- 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
@github-actions
Copy link

github-actions bot commented Sep 18, 2025

Code Coverage Report

Overall Project 61.37% -0.34% 🍏
Files changed 81.26% 🍏

File Coverage
TelemetryProcessor.java 100% 🍏
DumperInitialization.java 100% 🍏
EventType.java 100% 🍏
TaskRunStart.java 100% 🍏
TelemetryEvent.java 100% 🍏
TaskRunEnd.java 100% 🍏
SnowflakeLogsConnectorProperty.java 98.63% 🍏
SnowflakeLogsConnector.java 86.42% 🍏
MetadataDumper.java 81.77% 🍏
DiskTelemetryWriteStrategy.java 80.14% -19.86% 🍏
TasksRunner.java 59.42% -3.14% 🍏
StartUpMetaInfoProcessor.java 47.33% -15.33%
DefaultArguments.java 36.91% -4.73%
TelemetryStrategyFactory.java 33.33% -52.38%
NoOpTelemetryWriteStrategy.java 0% -60%

@kaxuna kaxuna requested a review from misolt September 19, 2025 12:56
DUMPER_RUN_METRICS
DUMPER_RUN_START,
DUMPER_RUN_END,
METADATA,

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.

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.

@github-actions
Copy link

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.

@github-actions github-actions bot added the stale label Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants