public function __construct(array $config = [])
{
$this->codec = new PhpArray(['timestamp' => function ($v) {
return $this->formatTimestampFromApi($v);
}, 'severity' => function ($v) {
return Logger::getLogLevelMap()[$v];
}, 'outputVersionFormat' => function ($v) {
return self::$versionFormatMap[$v];
}]);
$config['codec'] = $this->codec;
$this->setRequestWrapper(new GrpcRequestWrapper($config));
$gaxConfig = $this->getGaxConfig();
$this->configClient = new ConfigServiceV2Client($gaxConfig);
$this->loggingClient = new LoggingServiceV2Client($gaxConfig);
$this->metricsClient = new MetricsServiceV2Client($gaxConfig);
}