Sentry - monkey patching globals?

TFTim Fish10/8/2023
I'm working with Sentry to release a Deno SDK. To capture breadcrumbs and tracing for console/fetch etc, Sentry monkey patch these globals. Last time I tried, shortly after v1 this worked but trying with the latest release, this no longer works. Testing further I can monkey patch globals but it seems to be isolated to the module/file where I do the patching. Is this expected behaviour? Have there been changes to restrict monkey patching globals?
DAHDeno AI Helper10/8/2023
Based on the documentation, it doesn't provide a clear answer to your question about monkey patching globals in Deno. It's important to note that Deno is designed to be a secure runtime for JavaScript and TypeScript, and it isolates scripts from the system unless explicitly allowed, which might affect the behavior of monkey patching. However, without specific information in the documentation about this topic, I can't provide a definitive answer. If you're having technical issues with this, it might be helpful to provide a minimal code example that reproduces the problem. This could help in identifying if the issue is a bug or an intended behavior. Also, consider checking the release notes of the versions between your last successful attempt and the latest release to see if there were any changes that might affect this. Remember to always test your code thoroughly when monkey patching, as it can lead to unpredictable behavior and make debugging more difficult. 馃
TFTim Fish10/8/2023
Support for Deno server 路 Issue #3009 路 getsentry/sentry-javascript
Summary SDK For https://deno.land/ A Deno SDK would require Sentry provides a package which follows the spec upon which Deno applications are built. Essentially it is based on a non-node JS runtime...
TFTim Fish10/8/2023
feat(ext/node): properly segregate node globals by lucacasonato 路 P...
Code run within Deno-mode and Node-mode should have access to a slightly different set of globals. Previously this was done through a compile time code-transform for Node-mode, but this is not idea...
@Tim Fish you should only run into this for console fetch is not environment isolated

Looking for more? Join the community!

Recommended Posts
Whats the CPU time limit for queue worker processes running on Deno Deploy ?There is a CPU time limit for request. Is there any limit for the new KV queue ?Using Deno runtime as a v8 isolate runnerDeno is awesome, not just the end product but also the core runtime. I've spend the past couple of wCannot find moduleI tried importing '../api/index.js' but got the error 'module not found', I knew this error would aphow to configure deno lint with additional rules + optionsSpecifically I'd like to restrict some imports - is that possible with deno lint?How to read all text from stdin.It uses to be simple with the `Deta.readAll` function. Now it is deprecated, link to https://deno.lIs it possible to use Deno KV on subhosting?I'm using Deno subhosting and i would like to know if it's possible to use KV on subhostingError only happens when I'm on deno deployPlease can someone explain why with my web application when deployed in deno deploy I get this respoDeno Deploy - is it possible to have 2 servers running?Maybe Im using it completely wrong, but locally when i develop I have two Deno servers running: BacNPM package randomly brokeI've been using the imagekit package for my fresh project, and it's been working fine since I instalsubpackage imports with npm specifierse.g. `import colors from "npm:tailwindcss/colors"` currently fails, is this not supposed to work? SIs it possible to use Cache-Control headers to control Deno's cacheI've seen via an issue ( https://github.com/denoland/deno/issues/16296 ) that Deno stores its metadaDeno Deploy Queue trouble in productionI'm encountering an issue with Deno Queue in my Deno Deploy project, and I'm hoping to get some guid