Skip to content

Commit ad015f7

Browse files
authored
Merge pull request #72 from open-runtimes/chore-add-log-for-function-version
Add tag for function version
2 parents faa9d91 + 19a3f4f commit ad015f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/http.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ function removeAllRuntimes(Table $activeRuntimes, Orchestration $orchestration):
394394

395395
$runtimeHostname = \uniqid();
396396

397+
$log->addTag('version', $version);
397398
$log->addTag('runtimeId', $runtimeName);
398399

399400
if ($activeRuntimes->exists($runtimeName)) {
@@ -726,6 +727,7 @@ function (string $runtimeId, ?string $payload, string $path, string $method, arr
726727

727728
$runtimeName = System::getHostname() . '-' . $runtimeId;
728729

730+
$log->addTag('version', $version);
729731
$log->addTag('runtimeId', $runtimeName);
730732

731733
$variables = \array_merge($variables, [

0 commit comments

Comments
 (0)