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

Breadcrumb

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

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

API Navigation

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