enabled property
Returns true if the tracer is enabled and will create sampling spans. This should be checked before performing expensive operations to create spans.
Implementation
@override
bool get enabled => _enabled;
set
enabled
(bool enable)
Sets whether this tracer is enabled.
When disabled, the tracer will still create spans, but they may not be recorded or exported.
Implementation
set enabled(bool enable) => _enabled = enable;