-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
feat: events for ng #26908
feat: events for ng #26908
Conversation
cli/tools/run/mod.rs
Outdated
deno_runtime::ops::otel::report_event("deno_boot_failure", e) | ||
})?; | ||
|
||
let exit_code = worker.run().await.inspect_err(|e| { | ||
deno_runtime::ops::otel::report_event("deno_uncaught_exception", e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit worried about spread of these semi-random strings throughout the codebase. Maybe we could create a deno_otel
crate that all other crates pull that contains a list of static: &str EVENT_NAME = "event_name;
vars that we can use?
cli/tools/run/mod.rs
Outdated
})?; | ||
|
||
let exit_code = worker.run().await.inspect_err(|e| { | ||
deno_runtime::ops::otel::report_event("deno_uncaught_exception", e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deno_runtime::ops::otel::report_event("deno_uncaught_exception", e) | |
deno_runtime::ops::otel::report_event("uncaught_exception", e) |
cli/tools/run/mod.rs
Outdated
let exit_code = worker.run().await?; | ||
.await | ||
.inspect_err(|e| { | ||
deno_runtime::ops::otel::report_event("deno_boot_failure", e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deno_runtime::ops::otel::report_event("deno_boot_failure", e) | |
deno_runtime::ops::otel::report_event("boot_failure", e) |
cli/tools/run/mod.rs
Outdated
let exit_code = worker.run().await?; | ||
.await | ||
.inspect_err(|e| { | ||
deno_telemetry::report_event("deno_boot_failure", e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deno_telemetry::report_event("deno_boot_failure", e) | |
deno_telemetry::report_event("boot_failure", e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could conflict with user code emitting events
Signed-off-by: Bert Belder <[email protected]>
Add ng events with well-known names.