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

Breadcrumb

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

function Span::setAttribute

@inheritDoc

File

vendor/open-telemetry/sdk/Trace/Span.php, line 127

Class

Span

Namespace

OpenTelemetry\SDK\Trace

Code

public function setAttribute(string $key, $value) : self {
    if ($this->hasEnded) {
        return $this;
    }
    $this->attributesBuilder[$key] = $value;
    return $this;
}
RSS feed
Powered by Drupal