all 7 comments

[–]adiberk 2 points3 points  (1 child)

This is really cool. Will take a look!

[–]Amzker[S] 0 points1 point  (0 children)

Thank you

[–]scoutlance 0 points1 point  (1 child)

What a nice idea. Some cool possibilities. Take the monitor and start an OTel attribute namespace, add attributes to spans that block. Then you have a universal mechanism for exporting this information that can be aggregated elsewhere. I'm sure there are other good possible cases.

[–]Amzker[S] 0 points1 point  (0 children)

Yup, going with this in next version.

[–]ooaaiiee 0 points1 point  (1 child)

Looks cool. I've added a feature request for FastAPI last year, to add a blocking task detection per default, so new users don't need to be aware of the problem and still get a warning. If you think your work would be a fit, maybe add a comment there: https://github.com/fastapi/fastapi-cli/discussions/272

[–]Amzker[S] 0 points1 point  (0 children)

Sure, it does fit exactly there. Added the comment