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
The
Enabledmethod 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.
oteltracegrpc#7825otlptracehttpbefore performing operation #7881Documentation