function ScopeSpans::setSchemaUrl
The Schema URL, if known. This is the identifier of the Schema that the span data is recorded in. To learn more about Schema URL see https://opentelemetry.io/docs/specs/otel/schemas/#schema-url This schema_url applies to all spans and span events in the "spans" field.
Generated from protobuf field <code>string schema_url = 3;</code>
Parameters
string $var:
Return value
$this
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Trace/ V1/ ScopeSpans.php, line 156
Class
- ScopeSpans
- A collection of Spans produced by an InstrumentationScope.
Namespace
Opentelemetry\Proto\Trace\V1Code
public function setSchemaUrl($var) {
GPBUtil::checkString($var, True);
$this->schema_url = $var;
return $this;
}