diff --git a/packages/EasyBugsnag/src/Configurators/AwsEcsFargateConfigurator.php b/packages/EasyBugsnag/src/Configurators/AwsEcsFargateConfigurator.php index 388f61dbc2..4e381e8c1b 100644 --- a/packages/EasyBugsnag/src/Configurators/AwsEcsFargateConfigurator.php +++ b/packages/EasyBugsnag/src/Configurators/AwsEcsFargateConfigurator.php @@ -86,7 +86,13 @@ private function resolveAppVersion(): ?string $awsData = $this->getAwsFargateTaskData(); $image = (string)($awsData['Containers'][0]['Image'] ?? ''); - return \explode(':', $image)[1] ?? null; + $appVersion = \explode(':', $image)[1] ?? null; + + if ($appVersion !== null) { + \putenv(\sprintf('APP_VERSION=%s', (string)$appVersion)); + } + + return $appVersion; } /**