mirror of
https://github.com/appwrite/appwrite
synced 2026-05-06 06:48:22 +00:00
fix: use individual span attributes for country codes
Replace stringified JSON countryCodes attribute with individual
countryCode_{code} attributes to improve LogQL query compatibility.
This commit is contained in:
parent
5537fe210e
commit
345d8f2db5
1 changed files with 4 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue