Skip to content
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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

feat: events for ng #26908

wants to merge 1 commit into from

Conversation

devsnek
Copy link
Member

@devsnek devsnek commented Nov 18, 2024

Add ng events with well-known names.

@devsnek devsnek added the ci-draft Run the CI on draft PRs. label Nov 18, 2024
Comment on lines +82 to +86
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)
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-draft Run the CI on draft PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants