function TraceConfig::setConstantSampler
Generated from protobuf field <code>.opentelemetry.proto.trace.v1.ConstantSampler constant_sampler = 1;</code>
Parameters
\Opentelemetry\Proto\Trace\V1\ConstantSampler $var:
Return value
$this
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Trace/ V1/ TraceConfig.php, line 96
Class
- TraceConfig
- Global configuration of the trace service. All fields must be specified, or the default (zero) values will be used for each type.
Namespace
Opentelemetry\Proto\Trace\V1Code
public function setConstantSampler($var) {
GPBUtil::checkMessage($var, \Opentelemetry\Proto\Trace\V1\ConstantSampler::class);
$this->writeOneof(1, $var);
return $this;
}