Hacker News new | ask | show | jobs
by dj_mc_merlin 2041 days ago
> Finally, we track how many times our developers ran the command dev tc to typecheck a project with Sorbet on their development machine.

How? Do they track all of their devs commands?

1 comments

`dev tc` is a command at Shopify that runs Sorbet. I'm assuming they instrument all subcommands of their `dev` command and send aggregate statistics to an internal statsd service.

We do the same thing where I work. If you're working on a developer productivity team, the service whose SLA you're responsible for is the dev tools, so it's critical to know how long they take, which commands are run most frequently, etc.

In fact, Sorbet, has this built in: you can give it an assortment of `--metrics-...` [1] and `--statsd-...` [2] flags that configure Sorbet to talk to a statsd service directly:

[1] https://sorbet.org/docs/metrics

[2] https://sorbet.org/docs/metrics#reporting-metrics-directly-t...

Thanks!