ConfigTrait.php
Namespace
OpenTelemetry\SDK\Common\InstrumentationScopeFile
-
vendor/
open-telemetry/ sdk/ Common/ InstrumentationScope/ ConfigTrait.php
View source
<?php
declare (strict_types=1);
namespace OpenTelemetry\SDK\Common\InstrumentationScope;
trait ConfigTrait {
private bool $disabled = false;
public function setDisabled(bool $disabled) : void {
$this->disabled = $disabled;
}
public function isEnabled() : bool {
return $this->disabled === false;
}
}
Traits
Title | Deprecated | Summary |
---|---|---|
ConfigTrait |