-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Support missing node/os functionality #17850
Comments
i'm currently working on this |
CC @ry can i use the crate systemstat to implement :
and more... it is under more activity than I really don't wan't to make my own your call. |
Or if we are not confident enough, use a libuv binding : https://docs.rs/libuv-sys2/1.34.4/libuv_sys2/ |
We certainly are not adding libuv (despite it being our product) it overlaps too much with Tokio. I will look into sys_info vs systemstat. |
@ry did you have time to investigate ? |
@ecyrbe I haven't really, but systemstat seems quite reasonable. It has CI for windows unlike sys_info (which has been broken on windows for the last two releases). If anyone felt inclined to switch us from sys-info to systemstat, that would be welcome. I haven't checked if systemstat actually does all the things that sys-info does tho. |
Unfortunately, you won't get really far with it. It doesn't support memory info on macOS: https://github.com/myfreeweb/systemstat/blob/a7c54aa/src/platform/macos.rs#L58-L60 |
This comment has been minimized.
This comment has been minimized.
Add an op to list the network interfaces on the system. Prep work for denoland#8137 and `os.networkInterfaces()` Node compat in std. Refs denoland/deno_std#1436.
Add an op to list the network interfaces on the system. Prep work for denoland#8137 and `os.networkInterfaces()` Node compat in std. Refs denoland/deno_std#1436.
Add an op to list the network interfaces on the system. Prep work for denoland#8137 and `os.networkInterfaces()` Node compat in std. Refs denoland/deno_std#1436.
Add an op to list the network interfaces on the system. Prep work for #8137 and `os.networkInterfaces()` Node compat in std. Refs denoland/deno_std#1436.
Looks like Should |
Updated, thanks for the reminder |
|
import * as Sentry from "npm:@sentry/node@7.12.0";
Sentry.init({
dsn: "<my-sentry-dsn>",
tracesSampleRate: 1.0,
});
async function testEvent() {
try {
throw new Error("Nope.");
} catch (e) {
Sentry.captureException(e);
await Sentry.flush();
}
}
await testEvent(); Error shown in Sentry UI:
Edit: Fixed in 1.29.2 |
Can someone (@crowlKats?) mark the "getPriority" and "userInfo" checkboxes in the opening comment above as completed, and link both to #19370? Also, shouldn't this test (and possibly this one too) be uncommented? /CC @kt3k |
I am looking into the Node polyfill for 'os' ( #3403 ). The following Node functionality does not seem to be available in Deno:
cpus()
- to get information about the logical CPU cores. See node API.endianness()
- the endianness of the CPU for which the Deno binary was compiled. See node API Endianness #3833freemem()
- the amount of free system memory. See node APIgetPriority([pid])
- the scheduling priority for the process specified by pid. See node API fest(std/node): implement os.getPriority() and os.setPriority() #4202loadavg()
- an array containing the 1, 5, and 15 minute load averages. See node APInetworkInterfaces()
- Returns an object containing network interfaces that have been assigned a network address. See node APIplatform()
- a string identifying the operating system platform. See node APIrelease()
- the operating system as a string. See node API Add missing node os.release() implementation #4065setPriority([pid, ]priority)
- Attempts to set the scheduling priority for the process specified by pid. See node API fest(std/node): implement os.getPriority() and os.setPriority() #4202tmpdir()
- Returns the operating system's default directory for temporary files as a string. See node API feat(std/node): add os.tmpdir() implementation #4213totalmem()
- total amount of system memory in bytes as an integer. See node APIhostname()
- host name of the operating system as a string. See node APItype()
- the operating system name as returned by uname(3). See node APIuptime()
- the system uptime in number of seconds. See node APIuserInfo([options])
- the username, uid, gid, shell, and homedir of the current user. See node APISignal Constants
- the following Signal constants are missing from Deno but are defined in Node: SIGIOT, SIGPOLL, SIGLOST, SIGINFO, SIGUNUSED (see node API)POSIX and Windows Error Constants
- See node APIdlopen Constants
- See node APIPriority Constants
- See node API fest(std/node): implement os.getPriority() and os.setPriority() #4202libuv Constants
- See node APIThe 'os' polyfill cannot be fully completed until the above items are implemented in Deno.
The text was updated successfully, but these errors were encountered: