Skip to content
Small plugin to tartiflette that will provide a directive for timing field execution
Branch: master
Clone or download
Latest commit da0471c Jul 9, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Fix githubworkflow Jun 19, 2019
changelogs
github-actions Add github action related code Jun 19, 2019
tartiflette_plugin_time_it Apply new isort version Jul 1, 2019
tests Add some more tests Jun 19, 2019
.gitignore With some tests Jun 19, 2019
.isort.cfg fix isort config Jun 19, 2019
CHANGELOG.md Add github action related code Jun 19, 2019
Dockerfile Add Dockerfile Jun 19, 2019
LICENSE Initial commit Jun 19, 2019
Makefile chore(changelog): Keep changelog updated Jul 1, 2019
README.md Add github action related code Jun 19, 2019
pylintrc With some tests Jun 19, 2019
setup.py Bump pytest from 5.0.0 to 5.0.1 Jul 8, 2019

README.md

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()}}])
You can’t perform that action at this time.