Does Sentry SDK need a separate transport to run in a worker thread? #12911
-
I'm implementing Sentry in an Astro project using the Astro SDK. It's likely we'll expand usage to a number of existing projects in a variety of SSG frameworks (particularly Svelte, Remix, and Next). I'm familiar with Pino as a transport, which uses a worker thread and streams to offload logging work from the main thread. Does the Sentry SDK run in the main thread? Does it make sense to use with a separate transport, or is this unnecessary? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@webstackdev the sentry node sdk has a transport that runs in the main thread, but you can swap it out via a custom transport of your choosing. In our testing we haven't found it necessary to use a worker thread, but this really depends on your setup. |
Beta Was this translation helpful? Give feedback.
@webstackdev the sentry node sdk has a transport that runs in the main thread, but you can swap it out via a custom transport of your choosing. In our testing we haven't found it necessary to use a worker thread, but this really depends on your setup.