-
Notifications
You must be signed in to change notification settings - Fork 7.8k
error code/msg details for failed elevated setup #9941
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1612,10 +1612,27 @@ impl App { | |
| } | ||
| } | ||
| Err(err) => { | ||
| let mut code_tag: Option<String> = None; | ||
| let mut message_tag: Option<String> = None; | ||
| if let Some((code, message)) = | ||
| codex_core::windows_sandbox::elevated_setup_failure_details( | ||
| &err, | ||
| ) | ||
| { | ||
| code_tag = Some(code); | ||
| message_tag = Some(message); | ||
| } | ||
| let mut tags: Vec<(&str, &str)> = Vec::new(); | ||
| if let Some(code) = code_tag.as_deref() { | ||
| tags.push(("code", code)); | ||
| } | ||
| if let Some(message) = message_tag.as_deref() { | ||
| tags.push(("message", message)); | ||
| } | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. non-blocking but would be great to include in core
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes - one of the things we'll address when we implement the NUX in the vsce is moving all the metrics stuff to core, so it gets included |
||
| otel_manager.counter( | ||
| "codex.windows_sandbox.elevated_setup_failure", | ||
| 1, | ||
| &[], | ||
| &tags, | ||
| ); | ||
| tracing::error!( | ||
| error = %err, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.