in src/Transport.php [173:190]
public function setElasticMetaHeader(string $clientName, string $clientVersion, bool $async = false): self
{
$phpSemVersion = sprintf("%d.%d.%d", PHP_MAJOR_VERSION, PHP_MINOR_VERSION, PHP_RELEASE_VERSION);
$meta = sprintf(
"%s=%s,php=%s,t=%s,a=%d",
$clientName,
$this->purgePreReleaseTag($clientVersion),
$phpSemVersion,
$this->purgePreReleaseTag(self::VERSION),
$async ? 1 : 0 // 0=syncronous, 1=asynchronous
);
$lib = $this->getClientLibraryInfo();
if (!empty($lib)) {
$meta .= sprintf(",%s=%s", $lib[0], $lib[1]);
}
$this->headers[self::ELASTIC_META_HEADER] = $meta;
return $this;
}