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

Breadcrumb

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

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\Instrumentation

Code

public function __construct(?string $span_name = null, ?int $span_kind = null, array $attributes = []) {
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal