feat(sentry): add performance instrumentation for dashboard comparison#2375
Merged
thostetler merged 7 commits intoadsabs:masterfrom Feb 5, 2026
Merged
Conversation
Add initialScope.tags.app = 'bumblebee' to Sentry config to enable filtering and comparison with Nectar (SciX) performance dashboards.
Create AMD utility module for Sentry span instrumentation with: - PERF_SPANS constants matching Nectar naming convention - trackUserFlow/trackDeferred for async operation spans - startRenderSpan for UI rendering spans - getQueryType and getResultCountBucket helpers for tagging Register as 'performance' path in RequireJS config.
Add search.submit.total span tracking: - Results widget publishes timing:search-started event on search init - Navigator creates span on timing:search-started - Navigator ends span on timing:results-loaded Includes query_type tag from performance utility.
Wrap export API request in trackDeferred with export.api.request span. Includes export_format tag for filtering by export type.
Add performance tracking for library operations: - library.list.load for fetching library metadata - library.create.total for creating new libraries - library.add.total for adding papers to libraries
Add orcid.profile.load span tracking for getUserProfile requests to measure ORCID integration performance.
- Remove unused performance import from query_mediator - Add try/catch around all Sentry span operations - Extract endSpan helper with defensive error handling - Ensure tracking code never breaks the main application flow
shinyichen
approved these changes
Feb 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds custom sentry spans that mirror the ones added to nectar so that the dashboards can have the same charts