Skip to content

chore(otel): rename OtelManager to SessionTelemetry#13808

Merged
owenlin0 merged 1 commit intomainfrom
owen/rename_otel_manager
Mar 7, 2026
Merged

chore(otel): rename OtelManager to SessionTelemetry#13808
owenlin0 merged 1 commit intomainfrom
owen/rename_otel_manager

Conversation

@owenlin0
Copy link
Copy Markdown
Collaborator

@owenlin0 owenlin0 commented Mar 6, 2026

Summary

This is a purely mechanical refactor of OtelManager -> SessionTelemetry to better convey what the struct is doing. No behavior change.

Why

OtelManager ended up sounding much broader than what this type actually does. It doesn't manage OTEL globally; it's the session-scoped telemetry surface for emitting log/trace events and recording metrics with consistent session metadata (app_version, model, slug, originator, etc.).

SessionTelemetry is a more accurate name, and updating the call sites makes that boundary a lot easier to follow.

Validation

  • just fmt
  • cargo test -p codex-otel
  • cargo test -p codex-core
@owenlin0 owenlin0 marked this pull request as ready for review March 6, 2026 23:08
@owenlin0 owenlin0 requested a review from apanasenko-oai March 6, 2026 23:09
@owenlin0 owenlin0 merged commit 289ed54 into main Mar 7, 2026
49 of 53 checks passed
@owenlin0 owenlin0 deleted the owen/rename_otel_manager branch March 7, 2026 00:23
@github-actions github-actions bot locked and limited conversation to collaborators Mar 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants