mirror of
https://github.com/openai/codex.git
synced 2026-11-28 23:34:06 +00:00
feat: add session source as otel metadata tag (#9720)
Add session.source and user.account_id as global OTEL metric tags to identify client surface and user.
This commit is contained in:
1 parent
02fced28a4
commit
0fa45fbca4
3 files changed
+10
-2
No files matched your search
@@ -40,7 +40,7 @@ impl OtelManager {
|
||||
auth_mode: Option<AuthMode>,
|
||||
log_user_prompts: bool,
|
||||
terminal_type: String,
|
||||
_session_source: SessionSource,
|
||||
session_source: SessionSource,
|
||||
) -> OtelManager {
|
||||
Self {
|
||||
metadata: OtelEventMetadata {
|
||||
@@ -48,6 +48,7 @@ impl OtelManager {
|
||||
auth_mode: auth_mode.map(|m| m.to_string()),
|
||||
account_id,
|
||||
account_email,
|
||||
session_source: session_source.to_string(),
|
||||
model: model.to_owned(),
|
||||
slug: slug.to_owned(),
|
||||
log_user_prompts,
|
||||
|
||||
Reference in new issue
Block a user