need context object to find the metrics object when wrapping aws objects