Login screen and api endpoint reorganization

This commit is contained in:
Maurus Decimus
2026-04-05 19:57:23 +02:00
parent eecec0aa31
commit fde37b670f
29 changed files with 1005 additions and 1606 deletions

View File

@@ -44,7 +44,7 @@ impl Subscriber {
let mut seen_keys = AHashSet::new();
for (key, value) in &event.keys {
if seen_keys.insert(*key) {
put_field_length_encoded(&mut buf, key.name(), |buf| {
put_field_length_encoded(&mut buf, key.as_str(), |buf| {
write!(buf, "{value}").unwrap()
});
}

View File

@@ -203,7 +203,7 @@ impl OtelTracer {
record.set_timestamp(UNIX_EPOCH + Duration::from_secs(event.inner.timestamp));
record.set_observed_timestamp(SystemTime::now());
for (k, v) in &event.keys {
record.add_attribute(k.name(), build_any_value(v));
record.add_attribute(k.as_str(), build_any_value(v));
}
record
}
@@ -235,7 +235,7 @@ fn build_key_value(key_value: &(trc::Key, trc::Value)) -> Option<KeyValue> {
}
fn build_key(key: &trc::Key) -> Key {
Key::from_static_str(key.name())
Key::from_static_str(key.as_str())
}
fn build_any_value(value: &trc::Value) -> AnyValue {