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

Breadcrumb

  1. Drupal Core 11.1.x

SpanAttribute.php

Namespace

OpenTelemetry\API\Instrumentation

File

vendor/open-telemetry/api/Instrumentation/SpanAttribute.php

View source
<?php

declare (strict_types=1);
namespace OpenTelemetry\API\Instrumentation;

use Attribute;

/**
 * For function and methods that have the {@link WithSpan}
 * attribute, adding this attribute to an argument will
 * add the argument as a span attribute.
 */
final class SpanAttribute {
    
    /**
     * @param string|null $name Optional name to use for the attribute. Default: argument name.
     */
    public function __construct(?string $name = null) {
    }

}

Classes

Title Deprecated Summary
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.
RSS feed
Powered by Drupal