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

Breadcrumb

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

function ParentBased::getDescription

Overrides SamplerInterface::getDescription

File

vendor/open-telemetry/sdk/Trace/Sampler/ParentBased.php, line 90

Class

ParentBased
This implementation of the SamplerInterface that respects parent context's sampling decision and delegates for the root span. Example: ``` use OpenTelemetry\API\Trace\ParentBased; use OpenTelemetry\API\Trace\AlwaysOnSampler

Namespace

OpenTelemetry\SDK\Trace\Sampler

Code

public function getDescription() : string {
    return 'ParentBased+' . $this->root
        ->getDescription();
}
RSS feed
Powered by Drupal