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

Breadcrumb

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

function Span::setAttributes

Same name in this branch
  1. 11.1.x vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Trace/V1/Span.php \Opentelemetry\Proto\Trace\V1\Span::setAttributes()

@inheritDoc

File

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

Class

Span

Namespace

OpenTelemetry\SDK\Trace

Code

public function setAttributes(iterable $attributes) : self {
    foreach ($attributes as $key => $value) {
        $this->attributesBuilder[$key] = $value;
    }
    return $this;
}
RSS feed
Powered by Drupal