micro-sentry icon indicating copy to clipboard operation
micro-sentry copied to clipboard

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

Open Nealsoni00 opened this issue 3 years ago • 4 comments

🐞 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.

Nealsoni00 avatar Sep 23 '21 20:09 Nealsoni00

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

IKatsuba avatar Sep 24 '21 07:09 IKatsuba

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 avatar Sep 26 '21 20:09 Nealsoni00

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!

Nealsoni00 avatar Oct 11 '21 13:10 Nealsoni00

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

IKatsuba avatar Jun 08 '22 12:06 IKatsuba