class WithSpan
Functions and methods with this attribute will be auto-instrumented by the OpenTelemetry extension.
Hierarchy
- class \OpenTelemetry\API\Instrumentation\WithSpan
Expanded class hierarchy of WithSpan
File
-
vendor/
open-telemetry/ api/ Instrumentation/ WithSpan.php, line 14
Namespace
OpenTelemetry\API\InstrumentationView source
final class WithSpan {
/**
* @param string|null $span_name Optional span name. Default: function name or class::method
* @param int|null $span_kind Optional {@link SpanKind}. Default: {@link SpanKind::KIND_INTERNAL}
* @param array $attributes Optional attributes to be added to the span.
*/
public function __construct(?string $span_name = null, ?int $span_kind = null, array $attributes = []) {
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
WithSpan::__construct | public | function |