SpanAttribute.php
Namespace
OpenTelemetry\API\InstrumentationFile
-
vendor/
open-telemetry/ api/ Instrumentation/ SpanAttribute.php
View source
<?php
declare (strict_types=1);
namespace OpenTelemetry\API\Instrumentation;
use Attribute;
/**
* For function and methods that have the {@link WithSpan}
* attribute, adding this attribute to an argument will
* add the argument as a span attribute.
*/
final class SpanAttribute {
/**
* @param string|null $name Optional name to use for the attribute. Default: argument name.
*/
public function __construct(?string $name = null) {
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
SpanAttribute | For function and methods that have the {@link WithSpan} attribute, adding this attribute to an argument will add the argument as a span attribute. |