Skip to content
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

chronicle executor spawns tasks with structured logs #964

Merged
merged 9 commits into from
Jul 2, 2024

Conversation

4meta5
Copy link
Contributor

@4meta5 4meta5 commented Jun 26, 2024

Closes #958 to structure logs for executor when spawning tasks, should facilitate debugging

@4meta5 4meta5 self-assigned this Jun 26, 2024
@4meta5 4meta5 requested a review from dvc94ch June 26, 2024 20:42
};
self.task_spawner.execute_sign(shard_id, task_id, payload.into(), block_number)
},
TaskPhase::Write => {
let Some(public_key) = self.substrate.get_task_signer(task_id).await? else {
tracing::warn!("no signer set for write phase");
tracing::warn!("no signer set for write phase for task {task_id}");
Copy link
Collaborator

Choose a reason for hiding this comment

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

we want a structured log, see how it's done in the chronicle service. something along the lines of task_id=task_id

@4meta5 4meta5 marked this pull request as ready for review July 1, 2024 16:06
@4meta5 4meta5 requested a review from dvc94ch July 1, 2024 16:07
@4meta5 4meta5 changed the title add task_id to all existing executor spawner logs chronicle executor spawns tasks with structured logs Jul 1, 2024
Copy link
Collaborator

@dvc94ch dvc94ch left a comment

Choose a reason for hiding this comment

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

exactly. thanks for working on this. need this in the entire chronicle and tss module to help debug issues

@dvc94ch dvc94ch merged commit ec45342 into development Jul 2, 2024
7 of 8 checks passed
@4meta5 4meta5 deleted the amar-executor-logs-contain-task-id branch July 2, 2024 10:50
@FlorianFranzen
Copy link
Collaborator

This seems to have broken my clippy...

@dvc94ch
Copy link
Collaborator

dvc94ch commented Jul 2, 2024

Looks like CI is broken

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.

executor/spawner logs contain task_id
3 participants