getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
38.65k stars 4.14k forks source link

Support Shield / Badges #49299

Open GiovanniCardamone opened 1 year ago

GiovanniCardamone commented 1 year ago

Problem Statement

Missing a way to easly see errors outside of Sentry.

Solution Brainstorm

Would be nice to have a status badge / shield to summarize unsolved errors in repository example

Many applications provides this kind of integrations to display differents stats, Sentry could be one of those.

Would be nice to have the same style formats provided by shield.io because are the mainly used:

also with the possibility to customize if icon should be present or not.

Product Area

Dashboards

getsantry[bot] commented 1 year ago

Assigning to @getsentry/support for routing, due by (sfo). ⏲️

getsantry[bot] commented 1 year ago

Routing to @getsentry/product-owners-dashboards for triage, due by (yyz). ⏲️

getsantry[bot] commented 1 year ago

Routing to @getsentry/product-owners-settings-integrations for triage, due by (sfo). ⏲️

Dhrumil-Sentry commented 1 year ago

Hi @GiovanniCardamone - Thanks for bringing up this issue. We're actively looking at ways to surface Sentry errors outside sentry.io. In the examples you listed, I see issues being surfaced at a repository level.

What are you hoping to achieve with these error insights outside Sentry?

GiovanniCardamone commented 1 year ago

Hello @Dhrumil-Sentry i'll write here the recap about the badges integration and interesting points about the feature itself.

Sentry Badges

Purposes

  1. have a fast recap of what's the status

    e.g.

    • pipeline: passed
    • coverage: 95%
    • vulnerability: 5
    • errors: 200
  2. Ability to know if there is error without knowing / having access to the platform

    e.g.

    • public repository with private instances,
    • organization repository without infrastructure access
  3. show integrations used in a project directly

    e.g.

Example where shields are used

https://github.com/getsentry/sentry-javascript

General Badges Example

it should be customizable through query string

Colors

Events Count

unique events total events unique and total events

ℹ️ eventsCount[]: "unique" | "totals"

?eventsCount=unique
?eventsCount=totals
?eventsCount=unique&eventsCount=totals

Logo

colored logo with logo without logo

ℹ️ logo: "true" | "false" | "color" = "true"

?logo=true
?logo=false
?logo=colors

Danger Modes

ℹ️ dangerMode: "new-issue" | "previously-resolved" = "new-issue"

?dangerMode=new-issue // red when new issue, otherwise yellow, green on no error
?dangerMode=previously-resolved // red when previouslt resolved, otherwise yellow, green on no previously resolved
?dangerMode=new-issue&dangerMode=previously-resolved // MAX level win

Styles

https://shields.io/#styles

plastic flat flat square for-the-badge social

Link availability settings:

Dashboard integration

ui tools that create link based on customization options from ui itself

Shield I/O source code

https://github.com/badges/shields