You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To resolve the issue of not showing the CTA for setting up traces if already configured, follow these steps:
In /frontend/src/pages/Setup/SetupRouter/SetupRouter.tsx, locate the section where the CTA for traces setup is rendered.
Utilize the useTracesIntegration hook from /frontend/src/util/integrated.tsx to check if traces integration is already configured. This hook checks for traces integration data and returns a boolean indicating whether traces are integrated.
Before rendering the CTA, add a conditional check using the value returned by useTracesIntegration. If traces are already integrated (localStorageIntegrated is true for traces), do not render the CTA.
Example code snippet for the conditional rendering:
const{localStorageIntegrated: tracesIntegrated}=useTracesIntegration();if(!tracesIntegrated){// Render the CTA for setting up traces}
This approach ensures the CTA is only shown to users who have not yet configured traces integration.
Maybe we should look at setup events to determine if someone has traces configured, or maybe only show the CTA if there is no query.
The text was updated successfully, but these errors were encountered: