Closed xiao-pp closed 3 years ago
@izrobin Ah that's a good point - I think ultimately it should be possible. Based on the String
it should be able to find the class with that name then further check the super class/interface.
However that'd make it hard/impossible to "override" the mapping logic?
https://github.com/dropwizard-jobs/dropwizard-jobs has built-in metrics that could be registered in DW either manually or by using
JobsBundle
.This PR adds mappings on such metrics and put them into measurement
jobs
.It requires the job class to have
Job
at the end of its class name.