-
-
Notifications
You must be signed in to change notification settings - Fork 509
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
PyInstrument Extension #2727
PyInstrument Extension #2727
Conversation
Thanks for adding the Here's a preview of the changelog: This releases adds an extension for PyInstrument. It allows to instrument your server and find slow code paths. You can use it like this: import strawberry
from strawberry.extensions import pyinstrument
schema = strawberry.Schema(
Query,
extensions=[
pyinstrument.PyInstrument(report_path="pyinstrument.html"),
],
) Here's the preview release card for twitter: Here's the tweet text:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! I've added a few minor comments 😊
Co-authored-by: Patrick Arminio <patrick.arminio@gmail.com>
for more information, see https://pre-commit.ci
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2727 +/- ##
==========================================
+ Coverage 96.49% 96.51% +0.01%
==========================================
Files 195 196 +1
Lines 8015 8029 +14
Branches 1455 1455
==========================================
+ Hits 7734 7749 +15
+ Misses 181 179 -2
- Partials 100 101 +1 |
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for doing this :D
I've made a couple of fixes, but nothing major 😊
Thanks for contributing to Strawberry! 🎉 You've been invited to join You can also request a free sticker by filling this form: https://forms.gle/dmnfQUPoY5gZbVT67 And don't forget to join our discord server: https://strawberry.rocks/discord 🔥 |
Thanks for finishing this up :D |
Description
This adds a new extension for PyInstrument, an instrumentation framework with HTML reports.
Types of Changes
Issues Fixed or Closed by This PR
Checklist