Is it possible send events to Sentry just by HTTP requests? #7918
-
Hi, in my application i don't need polyfills or instrumentation of built-in javascript runtime features. Is there some minimal example of just sending an event to my Sentry instance using fetch api for example? Is it possible to send events without using Sentry NPM packages? I'm interested in this question because I'm considering using Bun and Dino as a runtime. Also, I want to more explicitly control what information is sent to Sentry and when. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Here is the protocol we use for sending data to Sentry: https://develop.sentry.dev/sdk/envelopes/ You'll also have to account for rate limiting: https://develop.sentry.dev/sdk/rate-limiting/ And here is the definition for payload: https://develop.sentry.dev/sdk/event-payloads/types/ We highly recommend against this though because this is a moving target, and you'll have to update your code to get access to new features. You'll also have to implement stacktrace parsing by yourself too (since error.stack is non standard across platforms). |
Beta Was this translation helpful? Give feedback.
Here is the protocol we use for sending data to Sentry: https://develop.sentry.dev/sdk/envelopes/
You'll also have to account for rate limiting: https://develop.sentry.dev/sdk/rate-limiting/
And here is the definition for payload: https://develop.sentry.dev/sdk/event-payloads/types/
We highly recommend against this though because this is a moving target, and you'll have to update your code to get access to new features. You'll also have to implement stacktrace parsing by yourself too (since error.stack is non standard across platforms).