Wire metrics client into memories extension (#24567)

## Summary

- let the memories extension capture the process-global OTEL metrics
client at install time
- keep app-server/TUI/exec extension construction APIs unchanged
- store the metrics client for future memory metrics without emitting
any metrics yet

## Test plan

- `just fmt`
- `just bazel-lock-update`
- `just bazel-lock-check`
- Not run: tests/clippy per request; CI will cover them
This commit is contained in:
jif-oai
2026-05-26 13:56:46 +02:00
committed by GitHub
parent 3936ed221d
commit c37884d5eb
4 changed files with 24 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ where
{
let mut builder = ExtensionRegistryBuilder::<Config>::new();
codex_guardian::install(&mut builder, guardian_agent_spawner);
codex_memories_extension::install(&mut builder);
codex_memories_extension::install(&mut builder, codex_otel::global());
Arc::new(builder.build())
}