opencensus-python
opencensus-python copied to clipboard
Add FastAPI extension
closes https://github.com/census-instrumentation/opencensus-python/issues/1020
This PR adds the FastAPI extension into contrib dir. Just like the stackdriver extension, it targets py3.6 and above that FastAPI supports.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
For more information, open the CLA check for this pull request.
Would like to see this merged at some point. Thank you
The MSFT example is so bad for this. It doesn't even populate operation_name on the performance view of AI. This is a must have IMO.
Wondering what is wrong with this PR/. There are no comments by any reviwers
Yes, this should be reviewed. My guess is that folks just copy+paste this code into their own project atm.
Hi @ikait 👋
Can rebase it with current master? There certainly will be a conflict in _Integrations, because of recently added httpx extension.
I'm deeply interested in getting that merged too.
Just by looking at the code I love your solution and it should work perfectly, but I'm not a maintainer, so my opinion doesn't really matter in the end.
Let me mention @lzchen and @jeremydvoss - I hope they will find time to review it and help you with merging.
ok, I'll do it soon.
Hi @lzchen and @jeremydvoss, I'm waiting for your code reviews. Thank you
@ikait
Thanks for the contribution and apologies for the delay. I've left a couple of small comments. Please also fix the lint to get the builds to pass.
@aabmass
Thanks for your review. I have corrected the points you raised.
@lzchen Maybe your CLA is missing and the build is failing. Could you sign it? or should I rebase it?
@ikait
Oops sorry about that, probably made the commit suggestions with a different email. I've signed the CLA but might take a bit to reflect in the build. In the meantime if you want to get this PR merged feel free to rebase my suggested changes.
Also please fix the failing tests.
Thank you @lzchen, CLA passed and I fixed that test passed!
@ikait I think tests are still failing. Are the tests passing locally? Please fix lint issues too. Sorry for the back and forth, I have to run the builds manually haha.
Hi @lzchen, I fixed lint issues and confirmed tox passed locally.
@ikait
Awesome! Thanks for the great work! Will be releasing this soon.
@lzchen when can we expect the release?
@macieyng
https://pypi.org/project/opencensus-ext-fastapi/0.1.0/
Thank you @ikait ♥️ Thank you @lzchen ♥️ You made some people in Poland happy today! 😇🙃