Use the Enable method of synchronous metric instruments (original) (raw)

The Enabled method was added to all synchronous instruments in #7763. This new method should be used in all instrumentation within the project, and documentation should be updated/created to promote its use.

Instrumentation

Update all uses of the metric API to check if the instrument is enabled prior to performing any computationally expensive operations.

Documentation