class TaskResource {

    @Operation(description =  "Get all tasks")
    @GET
    @Produces(MediaType.APPLICATION_JSON)
    public Collection<Task> getTasks() {
        if (this.counter != null) {
            this.counter.inc();
        }
        return taskService.getAll();
    }

    public  TaskResource(TaskService taskService, MetricRegistry metricRegistry);

}