sentry icon indicating copy to clipboard operation
sentry copied to clipboard

Feature request: manually add tags

Open boxed opened this issue 9 years ago • 76 comments

It would be really useful if one could manually add tags to events.

boxed avatar Jun 15 '17 12:06 boxed

Could you explain your use case? We're considering adding something similar to GitHub's labels, but it'd be a single value, not key=value pairs.

dcramer avatar Jun 15 '17 15:06 dcramer

I don't want to describe our situation too much but we've got a class of problems that are probably related and we're investigating so it would be nice to be able to tag them. Grouping is a much too aggressive action for this.

Single tags instead of key-value would cover our use cases fine.

boxed avatar Jun 15 '17 16:06 boxed

I agree with @boxed ! I need it too! For the same context. I would like to classify, without merge, just to investigate.

I would like to put labels to issues (to organize visually). It's difficult to work with the list of issues without a way to organize in a personalized way.

izabelavmelo avatar May 10 '18 16:05 izabelavmelo

Just a heads up we're going to be revisiting this in the near future. I do agree that there's a lot of reasons to do this kind of thing, we just need to explore the technical and product implications, and decide if it can be the same 'tags' system we use today or if it needs to be something else.

dcramer avatar May 10 '18 17:05 dcramer

I could do with this to be able to manually add issue IDs from our internal issue tracker that we can't integrate with Sentry (it's not reachable from the network where we have Sentry deployed).

CaptObvious avatar May 11 '18 10:05 CaptObvious

+1, There are scenarios where errors come up which we were not expecting. I can then later add a tag to group ones which come up later on. But all the errors which have already been created will not show up in that group/filter. So being able to make sense and organize error which was not expected is really useful (and let's be honest, nobody expects an error).

marioaa avatar Oct 03 '18 12:10 marioaa

+1. We have a JIRA instance internal to our company, and I’d like to have a spot on a given issue where we can refer to a JIRA issue related to the Sentry issue. I’m thinking a custom, manually-managed tag could handle this use case reasonably.

fosterbrereton avatar Nov 26 '18 16:11 fosterbrereton

A few quick questions for anyone paying attention:

  1. Do these tags need to exist in search?
  2. Do they need to exist in distribution graphs and other tag views on issue details?
  3. Do they need graphed (ignoring we dont provide graphs today)?

dcramer avatar Jan 17 '19 18:01 dcramer

  1. Do you need more than one of these tags per issue? e.g. limit of one value per key (JIRA_ISSUE=X)

dcramer avatar Jan 17 '19 18:01 dcramer

Speaking for myself:

  1. Yes
  2. Don't understand
  3. Don't understand
  4. One is infinitely better than zero

boxed avatar Jan 17 '19 19:01 boxed

  1. Yes
  2. No, as long as they're visible on the main issue page
  3. No
  4. Only one needed at this time (though I could certainly see more being valuable)

fosterbrereton avatar Jan 17 '19 20:01 fosterbrereton

FYI we're going to consider this as part of our incident management product set (Q2 timeline). Will update this thread with what we decide.

dcramer avatar Feb 04 '19 23:02 dcramer

If anyone is interested, here is the workaround I currently use to set tags for individual Exceptions

Sentry.configureScope(scope => {
  scope.addEventProcessor((event, hint) => {
    if (event.extra && event.extra.tagged) {
      return event;
    }
    Sentry.withScope(_scope => {
      const { tagName, tagValue } = getTagFrom(event, hint);
      _scope.setTag(tagName, tagValue);
      _scope.setExtra('tagged', true);
      Sentry.captureException(new Error(hint.originalException));
    });
    return null;
  });
});

silvainSayduck avatar Mar 01 '19 15:03 silvainSayduck

Our use case for having a tags system:

  1. For grouping issues. For example we got a lot of exceptions from our internationalization system. We'd like to be able to group them to investigate them under a i18n tag and eventually get some statistics to track the evolution of issues related to a specific tag. Same goes with projects, would be useful for bug fixes hackathons and statistics to group by specific sub-projects. Example of tags: projects > gift-cards, projects > events...etc

  2. For assigning priorities or link to a roadmap. Example tags: priority > low, priority > high.

  3. For having custom statuses over issues. Example: status > investigated, status > to investigate, status > waiting for feedback


Based on that, here hare the answers regarding @dcramer's https://github.com/getsentry/sentry/issues/5572#issuecomment-455281295:

  • Do these tags need to exist in search?

Ideally, yes.

  • Do you need more than one of these tags per issue? e.g. limit of one value per key

Yes.

Betree avatar Nov 27 '19 09:11 Betree

Where is this at?

We need to add tags manually because sometimes issues arise by a part of the technology that did not cause the issue. For example, a wrapper in frontend gets an exception but there is a bug in the API. We want to be able to measure how many issues are caused by what parts of the technology. So in the previous example, we'd like to tag manually the issue (once we've found the root cause) with a tag similar to "bug:api".

mavericohm avatar Dec 28 '19 03:12 mavericohm

sometimes we need to manually triage the issues reported by sentry and categorise them into different severities, so manually adding tags/label is required

liweinan0423 avatar Jan 14 '20 06:01 liweinan0423

We also have the same requirement in that we want to categorize issues. We might want to say some issues are high priority, others we keep an eye on. Some are easy to solve, some need the most senior person to look into. This is not possible now, unless referencing the issues in something like Jira with extra documentation work.

webjunkie avatar Jan 14 '20 08:01 webjunkie

This would be useful for doing some quick and lightweight triage or assessment on Content Security Policy (CSP) violation reports.

We would like to categorise these violation reports according to probable cause - such as a certain plugin or embed, a feature in the web page, or the cause being potential malware etc. Currently this needs to be done in an external system which requires extra work and tends to be cumbersome. It is easy to ignore (or solve) a certain type of issue, but that's not really what we would like to do.

Ideally it would be easy to look up all the issues under a certain manually applied category/tag/label. And it should be easy to add new issues under a pre-existing category, naturally.

This way it would be easy to answer questions like

  • how many unique users have potential malware in their browsers
  • which category types have most reports/unique users

jolkkola avatar Apr 07 '20 11:04 jolkkola

We would like to use this for triage between different teams. The key-value will be good, but we don't necessarily need it.

  1. Yes
  2. No
  3. No
  4. currently we need one, but it would be beneficial if we could have more for the future.

jakuub avatar Jun 24 '20 08:06 jakuub

This would be very useful for us. For our case we only need it to be in the issue level, not necessarily at the event level (although it should be fine wherever).

We would like to search for issues that belong to a team and right now the only way to do this is if we set a team as an assignee. But if we need to assign individual users then we need a place to store the team information so that it's easier for users to see issues belonging to their team. Tags/labels would be useful in this case.

charlesverdad avatar Jan 06 '21 03:01 charlesverdad