Use a metric filter's unique object id as the metric key prefix instead of a random string, as SecureRandom.hex may take a long time to execute.