Skip to content

Conversation

@kaxuna
Copy link
Collaborator

@kaxuna kaxuna commented Aug 27, 2025

  • Create TaskRunMetrics class for individual task timing and error tracking
  • Enhance TasksRunner to capture start/end times and errors for each task
  • Update MetadataDumper to pass telemetry processor to TasksRunner

- 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.

private void addTaskTelemetry(
String taskName, Instant startTime, Instant endTime, TaskState state) {
if (telemetryProcessor != null) {

Choose a reason for hiding this comment

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

Let's add Precondition to constructor and remove this if.

*/
public class TaskRunMetrics implements TelemetryPayload {

@JsonProperty private String name;

Choose a reason for hiding this comment

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

I thinks we need both, taskName and taskClass. Another option is to redesign somehow our hierarchy of connectors and tasks.


@JsonProperty private String name;

@JsonProperty private EventType eventType = EventType.TASK_RUN_METRICS;

Choose a reason for hiding this comment

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

It should be on level above, before payload.
The logic on the service to parse event should be something like this:

EventType type = event.getType();
if (type is A) {
//payload is audi, do audi specific
} else if (type is B) {
//payload is bwm, do bwm specific
}

@kaxuna kaxuna closed this Sep 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants