getsentry / getsentry/sentry

"Cache Miss Rates" section doesn't respect organization-based routing

Open
#96,626 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Insights > Backend Product Area: Insights
Dominant language
Python
Stars
44.8k
Forks
4.9k
Avg merge
21h 23m
Merged PRs (30d)
607

Description

Environment

self-hosted (https://develop.sentry.dev/self-hosted/)

Steps to Reproduce
  1. Use this image: ghcr.io/getsentry/sentry:819ece03dbdae3b636bbf73b2fa666b51f260630
  2. Enable these feature flags:
            "organizations:navigation-sidebar-v2",
            "organizations:navigation-sidebar-v2-banner",
            "organizations:command-menu-v2",
            "organizations:insights-session-health-tab-ui",
            "organizations:insights-modules-use-eap",
            "organizations:insights-overview-use-eap"
            "organizations:insights-mobile-screens-module",
    
  3. Go to Insights -> Backend from the web UI, see this result:
Image 4. Observe on the "Cache Miss Rates" section (bottom right on the above image), each span name has a link to: `https://sentry.internal.company.com/insights/backend/caches?project=1&transaction=POST%20/account-status`
Expected Result

On self-hosted, the link should be generated with the useOrganizations() React hooks.

The final link should be: https://sentry.internal.company.com/organizations/[organization-name]/insights/backend/caches?project=1&transaction=POST%20/account-status

Actual Result

See step to reproduce.

Product Area

Insights

Link

No response

DSN

No response

Version

819ece03dbdae3b636bbf73b2fa666b51f260630

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the Insights → Backend view and locate the “Cache Miss Rates” section, then trace how its span links are constructed. Verify the link-generation path uses the useOrganizations() React hook and that the finished URL includes the organization name before /insights/backend/caches.

Written by the indexing model from the issue text.

Assessment

Tech stack
react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.