Merge pull request #11238 from appwrite/fix-span-country-codes-logql

fix: use individual span attributes for country codes
This commit is contained in:
Jake Barnby 2026-02-04 05:16:15 +00:00 committed by GitHub
commit 17fc91aa19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -201,8 +201,8 @@ class Messaging extends Action
$countryCodes[$countryCode] = ($countryCodes[$countryCode] ?? 0) + 1;
}
}
if (!empty($countryCodes)) {
Span::add('countryCodes', \json_encode($countryCodes));
foreach ($countryCodes as $code => $count) {
Span::add('countryCode_' . $code, $count);
}
}
@ -441,8 +441,8 @@ class Messaging extends Action
$countryCodes[$countryCode] = ($countryCodes[$countryCode] ?? 0) + 1;
}
}
if (!empty($countryCodes)) {
Span::add('countryCodes', \json_encode($countryCodes));
foreach ($countryCodes as $code => $count) {
Span::add('countryCode_' . $code, $count);
}
if ($this->adapter === null) {