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

chore: remove core.metrics() #896

Merged
merged 6 commits into from
Sep 12, 2024
Merged

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented Sep 5, 2024

As Deno.metrics() is now removed from the runtime. Disclaimer: I'm not very familiar with this codebase. I'm not sure if there are other things that could be cleaned up.

@@ -116,76 +113,3 @@ impl OpMetricsSummary {
self.ops_dispatched_async > self.ops_completed_async
}
}

#[derive(Default, Debug)]
pub struct OpMetricsSummaryTracker {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIUC, core.metrics() was the only symbol that used this struct.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is actually used by the deno test for leaking ops discovery. This should most likely stay. See runtime/worker.rs in Deno repo.

@irbull
Copy link
Contributor

irbull commented Sep 6, 2024

I've filed a PR for the failing builds in deno_core. #895

@codecov-commenter
Copy link

codecov-commenter commented Sep 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.67%. Comparing base (0c7f83e) to head (448d2c3).
Report is 117 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #896      +/-   ##
==========================================
+ Coverage   81.43%   81.67%   +0.23%     
==========================================
  Files          97       98       +1     
  Lines       23877    24668     +791     
==========================================
+ Hits        19445    20147     +702     
- Misses       4432     4521      +89     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -116,76 +113,3 @@ impl OpMetricsSummary {
self.ops_dispatched_async > self.ops_completed_async
}
}

#[derive(Default, Debug)]
pub struct OpMetricsSummaryTracker {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is actually used by the deno test for leaking ops discovery. This should most likely stay. See runtime/worker.rs in Deno repo.

@iuioiua
Copy link
Contributor Author

iuioiua commented Sep 12, 2024

Please merge, @bartlomieju

@bartlomieju bartlomieju merged commit dfc37c6 into denoland:main Sep 12, 2024
18 checks passed
@iuioiua iuioiua deleted the remove-metrics branch September 12, 2024 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants