Closed
Description
Problem Statement
Sentry is adding support for metrics! See getsentry/sentry#58584 for more details.
This GH issue tracks the progress for metrics in the SDK
Solution Brainstorm
First less establish the core interfaces that make up the metrics SDK
### Core
- [ ] https://github.com/getsentry/sentry-javascript/pull/9304
- [ ] https://github.com/getsentry/sentry-javascript/pull/9698
Then let's build a simple metrics aggregator that is meant to be used in the browser. It does not have any jitter mechanisms via a rollup window because it's meant to be used on the FE - we try to minimize bundle size.
### Browser
- [ ] https://github.com/getsentry/sentry-javascript/pull/9794
- [ ] Add integration tests for metrics
- [x] Make sure metrics APIS are exported from nextjs, sveltekit, remix
When this is ready, we can cut a release and test this on the Sentry frontend. Also an opportunity for us to revisits API, and do bundle size optimizations.
After let's create a more complex metrics aggregator that will take into account rollup windows - we can just this for all of our server runtimes.
### Server runtime
- [ ] https://github.com/getsentry/sentry-javascript/issues/9797
- [ ] Add code locations support
- [ ] Add metrics summary support
### Testing
- [x] Test with https://github.com/getsentry/chartcuterie
- [ ] Test with https://github.com/getsentry/session-replay-analyzer