added constr with context for metrics
histogram percentiles check
metrix dispose added