mhansen / ansible-trace

Visualise Ansible execution time across playbooks, tasks, and hosts.
GNU General Public License v3.0
97 stars 3 forks source link

feat(play): Add play level trace span #19

Closed louisquentinjoucla closed 2 years ago

louisquentinjoucla commented 2 years ago

Hey :wave: ,

This PR close #3 ! Here how it does looks like with all playbooks with strategy free: image

It is not accurate as we lack of callback to achieve this, but here how it is done: The play duration event will only be created right before when a task for a given host will start. At the start of a new play, we add an E event for all the plays we created before.

We do one as well at the very end to handle the last play condition.

Even if it is not accurate, it gives a better pictures of what is going on.

Let me know if it is ok for you!

mhansen commented 2 years ago

Thanks, looks great!

On Sun, 19 Jun 2022 at 17:27, Quentin Joucla @.***> wrote:

Hey 👋 ,

This PR close #3 https://github.com/mhansen/ansible-trace/issues/3 ! Here how it does looks like with all playbooks with strategy free: [image: image] https://user-images.githubusercontent.com/28892335/174470206-1ec85219-88ea-4915-a294-e72c9c555e5a.png

It is not accurate as we lack of callback to achieve this, bur here how it is done: The play duration event will only be created right before when a task for a given host will start. At the start of a new play, we add an E event for all the plays we created before.

We do one as well at the very end to handle the last play condition.

Even if it is not accurate, it gives a better pictures of what is going on.

Let me know if it is ok for you!

You can view, comment on, or merge this pull request online at:

https://github.com/mhansen/ansible-trace/pull/19 Commit Summary

File Changes

(7 files https://github.com/mhansen/ansible-trace/pull/19/files)

Patch Links:

— Reply to this email directly, view it on GitHub https://github.com/mhansen/ansible-trace/pull/19, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAZYONJJMDRBFXKNEFOLA3VP3DWFANCNFSM5ZF6H6OQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>