function WithSpan::__construct
Parameters
string|null $span_name Optional span name. Default: function name or class::method:
int|null $span_kind Optional {@link SpanKind}. Default: {@link SpanKind::KIND_INTERNAL}:
array $attributes Optional attributes to be added to the span.:
File
-
vendor/
open-telemetry/ api/ Instrumentation/ WithSpan.php, line 22
Class
- WithSpan
- Functions and methods with this attribute will be auto-instrumented by the OpenTelemetry extension.
Namespace
OpenTelemetry\API\InstrumentationCode
public function __construct(?string $span_name = null, ?int $span_kind = null, array $attributes = []) {
}