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? |
Answered by
AbhiPrasad
Jul 16, 2024
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. |
1 reply
Answer selected by
webstackdev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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.