class 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.
Hierarchy
- class \OpenTelemetry\API\Instrumentation\SpanAttribute
Expanded class hierarchy of SpanAttribute
File
-
vendor/
open-telemetry/ api/ Instrumentation/ SpanAttribute.php, line 14
Namespace
OpenTelemetry\API\InstrumentationView source
final class SpanAttribute {
/**
* @param string|null $name Optional name to use for the attribute. Default: argument name.
*/
public function __construct(?string $name = null) {
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
SpanAttribute::__construct | public | function |