Repository navigation
feat(browser-starfish): add span description hovers for css and js - #58952
Conversation
|
Converting to draft because there's an issue where the resource names now link to the db module query summary. |
| export function ModulePageProviders({title, children, baseURL}: Props) { | ||
| const organization = useOrganization(); | ||
|
|
||
| return ( | ||
| <RoutingContextProvider value={{baseURL: '/performance/database'}}> | ||
| <RoutingContextProvider value={{baseURL: baseURL || '/performance/database'}}> |
There was a problem hiding this comment.
I don't think we should default to database here, but there are so many places that this is used (even places where it might not make sense to use database such as interactions module). We should probably go over and fix the baseUrl everywhere and not put a default in a seperate PR.
There was a problem hiding this comment.
good idea, something def worth refactoring. cc @gggritso
There was a problem hiding this comment.
Agreed! We also could remove this altogether!
- Move all current "Starfish" initiatives under
/performance/routing, since/starfish/never ships anyway. Delete "Database", and move "Interactions" - Remove
RoutingContextcompletely, also use/performance/as the base, fix whatever code this breaks
| } = useFullSpanFromTrace(group, Boolean(group)); | ||
|
|
||
| const description = fullSpan?.description ?? shortDescription; | ||
| const snippetLanguage = language ?? 'sql'; |
There was a problem hiding this comment.
Can we remove this? We shouldn't default to sql.
AbhiPrasad
left a comment
There was a problem hiding this comment.
Thanks for making the changes!
On hover, show an example resource description as per #58723