$links Collection of links that will be associated with the Span to be created. * Typically, useful for batch operations. * @see https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/overview.md#links-between-spans * @return SamplingResult */ public function shouldSample( ContextInterface $parentContext, string $traceId, string $spanName, int $spanKind, AttributesInterface $attributes, array $links ): SamplingResult; /** * Returns the sampler name or short description with the configuration. * This may be displayed on debug pages or in the logs. * Example: "TraceIdRatioBasedSampler{0.000100}" */ public function getDescription(): string; }