function KeyValue::setValue
Generated from protobuf field <code>.opentelemetry.proto.common.v1.AnyValue value = 2;</code>
Parameters
\Opentelemetry\Proto\Common\V1\AnyValue $var:
Return value
$this
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Common/ V1/ KeyValue.php, line 89
Class
- KeyValue
- KeyValue is a key-value pair that is used to store Span attributes, Link attributes, etc.
Namespace
Opentelemetry\Proto\Common\V1Code
public function setValue($var) {
GPBUtil::checkMessage($var, \Opentelemetry\Proto\Common\V1\AnyValue::class);
$this->value = $var;
return $this;
}