mhansen / ansible-trace

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

Add top-level spans per play #3

Closed mhansen closed 2 years ago

mhansen commented 2 years ago

These would need to be kept track of per-host for the free strategy.

louisquentinjoucla commented 2 years ago

Hey :wave: !

Working on this issue, here how its look like in one of my test: image

Correct me If I'm wrong, but I don't think strategy have an impact on trace span, as strategy are restricted per play. So no matter what is the strategy, all hosts are going to wait the end of a play for everyone before starting a new play.

I'll try to implement role as well!

mhansen commented 2 years ago

Correct me If I'm wrong, but I don't think strategy have an impact on trace span, as strategy are restricted per play. So no matter what is the strategy, all hosts are going to wait the end of a play for everyone before starting a new play.

I think you might be right here. I might have misread what the free strategy does, where free doesn't actually complete the next play until the last play is done for everyone.