Skip to content
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

Enhancing Sentry Reports: Displaying Language, Modules, and Extra Data #103

Closed
butschster opened this issue Dec 10, 2023 · 1 comment
Closed
Labels
enhancement New feature or request feature for contributors Extra attention is needed module:sentry usability
Milestone

Comments

@butschster
Copy link
Member

butschster commented Dec 10, 2023

First of all, we can identify the language used in a report by looking at the payload.platform and linking it with payload.contexts.runtime.

Here's an example:

"payload": {
    ...
    "platform": "php",
    "contexts": {
      "runtime": {
        "name": "php",
        "version": "8.2.5"
      }
    },
    ...
}

Sentry also provides a list of PHP modules under payload.modules.

For instance:

"payload": {
    ...
    "modules": {
      "asm89/stack-cors": "v2.1.1",
      "brick/math": "0.11.0",
      "clue/stream-filter": "v1.6.0",
      "dflydev/dot-access-data": "v3.0.2",
      "doctrine/inflector": "2.0.6",
      "doctrine/instantiator": "2.0.0",
      "doctrine/lexer": "3.0.0",
       ...
    },
}

Additionally, Sentry provides extra data in a flexible format:

"payload": {
    ...
    "extra": {
     "environment": {
        "SHELL": "/bin/bash",
        "WSL2_GUI_APPS_ENABLED": "1",
        "WSL_DISTRO_NAME": "Ubuntu-22.04",
        "NODE_OPTIONS": "--openssl-legacy-provider",
        "NAME": "ButschsterLpp",
        ...
      },
      ...
    },
}

It would be beneficial if we could display all these details on a Sentry page.

  1. Language/Runtime Version: This could be displayed within the "Tags" section or as a separate block adjacent to it, clearly labeled with the language and version number for quick identification.

  2. Modules: A new expandable section titled "Modules" could be added below the "Tags" section. It should list the modules in a scrollable format with the ability to expand/collapse for detailed viewing.

  3. Extra Data: This could be shown at the bottom or as a sidebar panel that can be toggled on and off. It should be in a free-form text area or a table that allows for easy scanning of the various environmental variables and settings.


And funny picture from DALL-E with suggestion on how to display this data

image

@butschster butschster added this to the 1.0 milestone Dec 10, 2023
@butschster butschster added the for contributors Extra attention is needed label Apr 30, 2024
Kreezag added a commit that referenced this issue Jul 9, 2024
Kreezag added a commit that referenced this issue Jul 9, 2024
Kreezag added a commit that referenced this issue Jul 9, 2024
Kreezag added a commit that referenced this issue Jul 10, 2024
Kreezag added a commit that referenced this issue Jul 10, 2024
Kreezag added a commit that referenced this issue Jul 10, 2024
butschster added a commit that referenced this issue Jul 11, 2024
@Kreezag
Copy link
Member

Kreezag commented Jul 11, 2024

added in #197

@Kreezag Kreezag closed this as completed Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature for contributors Extra attention is needed module:sentry usability
Projects
Status: Done
Development

No branches or pull requests

2 participants