instrumentation for tracking cost