Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. WithSpan.php

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\Instrumentation
View 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
RSS feed
Powered by Drupal