guardian / typerighter

Even if you’re the right typer, couldn’t hurt to use Typerighter!
Apache License 2.0
276 stars 12 forks source link

Add timer to checkStream endpoint, with user in log markers #211

Closed jonathonherbert closed 1 year ago

jonathonherbert commented 1 year ago

What does this change?

Adds a timer to the /checkStream endpoint. This should let us see which users are using typerighter (normal retention policies apply), as was the case with the /check endpoint.

How to test

Running locally or in CODE, run a check against some content (all our clients should now be using checkStream.) You should see a line at the end of the check:

[info] utils.Timer - Task ApiController.checkStream complete in 7307ms

If you're looking in ELK, that line should contain user data as part of the marker info.