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

Breadcrumb

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

function SpanInterface::setAttributes

An attribute with a null key will be dropped, and an attribute with a null value will be dropped but also remove any existing attribute with the same key.

Parameters

iterable<non-empty-string, bool|int|float|string|array|null> $attributes:

See also

https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6…

1 method overrides SpanInterface::setAttributes()
NonRecordingSpan::setAttributes in vendor/open-telemetry/api/Trace/NonRecordingSpan.php
@inheritDoc

File

vendor/open-telemetry/api/Trace/SpanInterface.php, line 66

Class

SpanInterface

Namespace

OpenTelemetry\API\Trace

Code

public function setAttributes(iterable $attributes) : SpanInterface;

API Navigation

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