Tinkoff / micro-sentry

Tiny Sentry client with idiomatic wrapper for Angular
Apache License 2.0
118 stars 8 forks source link

[BUG] `Sentry.setTag` not showing up on sentry #10

Open Nealsoni00 opened 3 years ago

Nealsoni00 commented 3 years ago

🐞 Bug report

Description

I've added the test line: Sentry.setTag("name", "NEAL"); to a position i the code after Sentry has been initialized. Then at some other point I throw a fake error. the tag name: NEAL does not show up on the sentry page at all.

Expected behavior

Expect the tag to show up here but it does not: image

Versions

`"@micro-sentry/browser": "^2.1.0",`

Any help would be greatly appreciated! Also thank you so much for making this project! It's a lifesaver as the Sentry browser one is wayyy too large.

IKatsuba commented 3 years ago

Hi @Nealsoni00! Thank you for your report! Could you create a simple example on http://stackblitz.com/?

Nealsoni00 commented 3 years ago

Hey @IKatsuba!

All I do is init sentry and add a tag:

export const Sentry = new BrowserMicroSentryClient({
  dsn: 'https://[REDACTED]@[REDACTED].ingest.sentry.io/[REDACTED]',
});
// After loading inital data, set any tag (for testing, I used this line)
Sentry.setTag("name", "NEAL");

And when i throw a fake error like below, no tags are shown on the error report.

throw Error("TEST ERROR 5")

Let me know if that isn't the case for ya'll and I'd be happy to show more information. Errors and their breadcrumbs get reported perfectly.

Nealsoni00 commented 3 years ago

Hey @IKatsuba! Just wanted to follow up if you've noticed this happening to you?

I really appreciate the work y'all have done to make micro-sentry!

IKatsuba commented 2 years ago

Hi @Nealsoni00! I can't reproduce your case in the beta channel. Can you try the beta?