-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Add option to override default apiUrl and authHeader #41
Comments
Hi! Would extending and overriding the MicroSentryClient class be a feasible solution for you? Additionally, could you provide details on the specific DSN format used by Glitchtip and any custom headers you need? Understanding the format and headers will help us identify any compatibility issues and see how micro-sentry might better accommodate your setup. |
Hi sevaru, Overriding the MicroSentryClient should indeed work. The Glitchtip DNS looks like this: The username is passed as sentry_key when calling the sentry-based glitchtip API. Thanks again! |
As far as I understand, using this DSN https://v7mp44vih7hbapmexkz3fdvpxle3m3ii@app.glitchtip.com/12345 should result in https://app.glitchtip.com/api/12345/store/ and include sentry_key=v7mp44vih7hbapmexkz3fdvpxle3m3ii in the header. This setup seems compatible with the Sentry API and likely with Glitchtip as well. Aside from the tunnel option, could you clarify what specific issues you’re encountering with the default DSN parsing? Understanding where it diverges from this expected behavior could help pinpoint any necessary adjustments. |
Hi Sevaru, I took a look and it seems that the "store endpoint" is deprecated. Sentry now uses "Envelopes", as per here. I haven't found any mentions of the store endpoint on the Glitchtip documentation or codebase, so I assume it works only with "Envelopes". The resulting URL looks like this: |
Thanks again for your feedback |
🚀 Feature request
Is your feature request related to a problem?
Hi all, thanks for maintaining this lib!
We use today self-hosted Glitchtip, and we are considering migrating from @sentry/browser to micro-sentry on the frontend. However, we noticed that you follow a very specific
apiUrl
structure and have a pre-definedauthHeader
, so that custom DSNs won't match this pattern and will fail.Describe the solution you'd like
Add option to override the default
apiUrl
andauthHeader
.This would also be beneficial for people using tunnel.
Thanks!
Additional context
Here is the snippet I refer to:
Source: https://github.com/taiga-family/micro-sentry/blob/main/libs/core/src/lib/service/micro-sentry-client.ts
The text was updated successfully, but these errors were encountered: