Paul Krill
Editor at Large

Deno update brings OpenTelemetry integration

news
Feb 20, 20253 mins
JavaScriptNode.jsTypescript

Deno 2.2 highlights include built-in OpenTelemetry for monitoring logs, metrics, and traces and a major upgrade to the Deno linter.

shutterstock 1591493512 dinosaur roadside attraction brontosaurus T Rex clouds blue sky
Credit: The Image Party / Shutterstock

Deno Land has released Deno 2.2, a new version of the Deno runtime for JavaScript and TypeScript thatย features built-in OpenTelemetry for monitoring logs, metrics, and traces. The new Deno release also features Linter updates that include a new plugin system and new rules for React and Preact users.

Announced February 19, Deno 2.2 can be installed by current users by running the command deno upgrade. Instructions for new installs can be found here.

With Deno 2.2, Deno automatically instruments APIs such as ย console.log, Deno.serve, and fetch. Developers can instrument their own code using npm:@opentelemetry/api. To capture observability data, users will need to provide an OpenTelemetry protocol (OTLP) endpoint. For development and test environments, Deno Land suggests using Grafanaโ€™s LGTM Docker image.

Deno 2.2 also introduces a major upgrade to deno lint, which features a new plugin system and 15 rules particularly for React and Preact users. The rules include jsx-boolean-value, jsx-button-has-type, jsx-curly-braces, jsx-key, jsx-no-children-prop, jsx-no-comment-text-nodes, jsx-no-duplicate-props, jsx-no-unescaped-entities, jsx-no-useless-fragment, jsx-props-no-spread-multi, jsx-void-dom-elements-no-children, no-useless-rename, react-no-danger-with-children, react-no-danger, and react-rules-of-hooks.

To improve performance, Deno 2.2 now clears information about module analysis after a timeout. This leads to lower memory consumption, according to Deno Land officials. In another performance boost, Deno.stat and node:fs.stat now are as much as 2.5 times faster on Windows. Also, Node.js module resolution is made faster by limiting conversions between URLs and paths.

Deno 2.2 has a change to the deno outdated tool that adds an interactive way to update dependencies, according to Deno Land. And Node.js and NPM compatibility improvements continue with Deno 2.2, with capabilities such as .npmrc files now being discovered in the home directory and project directory.

Also in Deno 2.2:

  • A highly requested node:sqlite module makes it easy to work with in-memory or local databases.
  • Improvements to deno lsp make it faster and more responsive, with major boosts for web framework users.
  • The deno bench tool, for benchmarking code, has been made more precise.
  • The deno check tools for type checking now respect JSDoc tags and allow compiler options to be configured per workspace member.
  • Performance and quality of life improvements have been made to deno compile, which is now smaller and faster.
  • The release upgrades to TypeScript 5.7.
  • A revamped WebGPU implementation should improve performance of available APIs.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorldโ€™s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorldโ€™s audience of software developers and other information technology professionals. Paul has won a โ€œBest Technology News Coverageโ€ award from IDG.

More from this author