agent/php/ElasticApm/Impl/SpanComposite.php [36:60]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public $compressionStrategy;

    /** @var int */
    public $count;

    /** @var float */
    public $durationsSum;

    public function __construct(string $compressionStrategy, float $durationsSum)
    {
        $this->compressionStrategy = $compressionStrategy;
        $this->count = 1;
        $this->durationsSum = $durationsSum;
    }

    /** @inheritDoc */
    public function jsonSerialize()
    {
        $result = [];

        SerializationUtil::addNameValue('compression_strategy', $this->compressionStrategy, /* ref */ $result);
        SerializationUtil::addNameValueIfNotNull('count', $this->count, /* ref */ $result);
        SerializationUtil::addNameValue('sum', $this->durationsSum, /* ref */ $result);

        return SerializationUtil::postProcessResult($result);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



agent/php/ElasticApm/Impl/SpanCompositeData.php [36:60]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public $compressionStrategy;

    /** @var int */
    public $count;

    /** @var float */
    public $durationsSum;

    public function __construct(string $compressionStrategy, float $durationsSum)
    {
        $this->compressionStrategy = $compressionStrategy;
        $this->count = 1;
        $this->durationsSum = $durationsSum;
    }

    /** @inheritDoc */
    public function jsonSerialize()
    {
        $result = [];

        SerializationUtil::addNameValue('compression_strategy', $this->compressionStrategy, /* ref */ $result);
        SerializationUtil::addNameValueIfNotNull('count', $this->count, /* ref */ $result);
        SerializationUtil::addNameValue('sum', $this->durationsSum, /* ref */ $result);

        return SerializationUtil::postProcessResult($result);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



