A tartiflette plugin that will print execution duration of a field
Project description
tartiflette-plugin-time-it
Allows you to view field time execution in your log as easily as :
type Example {
aField: String @timeIt
}
By default the timeIt
directive will use it's own logger retrieved by logging.getLogger("__name__")
.
If called with useLogger: false
it will use the print statement.
At init time, using the create_engine
api, you can pass your own logger to the directive.
engine = await create_engine(sdl, modules=[{"name": "tartiflette_plugin_time_it", "config": {"logger": myLogger()}}])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for tartiflette-plugin-time-it-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d198abce967e739b2ef92a64ccb4b20131d61fe689b7dc257474920fcf8c07bc |
|
MD5 | 4d56bb11934da6cf720ae493e4de4bec |
|
BLAKE2b-256 | 68d773123b833d974a91cd8009ac94de49e2240d6252fed308a504312973800d |