Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tartiflette-plugin-time-it, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size tartiflette-plugin-time-it-1.0.0.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page