job.completed and whose aggregation property is
metadata.duration_ms.
This example records successful jobs. If failed work is billable, catch the error, record a
separate event name, and then rethrow it.
Measure and ingest the duration of an operation
job.completed and whose aggregation property is
metadata.duration_ms.