feat(metrics): [Trace Metrics 2] MetricsApi stub#4981
Merged
adinauer merged 2 commits intofeat/trace-metricsfrom Jan 14, 2026
Merged
feat(metrics): [Trace Metrics 2] MetricsApi stub#4981adinauer merged 2 commits intofeat/trace-metricsfrom
adinauer merged 2 commits intofeat/trace-metricsfrom
Conversation
Member
Author
This was referenced Dec 22, 2025
Contributor
Instructions and example for changelogPlease add an entry to Example: ## Unreleased
### Features
- [Trace Metrics 2] MetricsApi stub ([#4981](https://github.com/getsentry/sentry-java/pull/4981))If none of the above apply, you can opt out of this check by adding |
This was referenced Dec 22, 2025
Merged
5bfa70b to
d2c0dbf
Compare
3513eaa to
857a7aa
Compare
Contributor
Performance metrics 🚀
|
markushi
approved these changes
Jan 8, 2026
|
|
||
| @Override | ||
| public void count(@NotNull String name) { | ||
| scopes.getOptions(); |
Member
There was a problem hiding this comment.
I guess that will change anyway on on of the stacked PRs 😅
Suggested change
| scopes.getOptions(); | |
| // TODO implement |
This was referenced Jan 8, 2026
Merged
857a7aa to
e156d3c
Compare
d2c0dbf to
b0ec8eb
Compare
This was referenced Jan 9, 2026
Merged
Member
Author
|
@sentry review |
adinauer
added a commit
that referenced
this pull request
Jan 14, 2026
* Metrics Options * MetricsApi stub * Add transport types for metrics * Enable metrics by default * Format code * Add batch processor for Metrics * Wire up Metrics parts * Metrics counter basic API * Metrics Count API * Metrics Distribution API * Metrics Gauge API * Metrics Envelope item deserialization * Record client report for discarded metrics envelope item * Metrics external options * Metrics Manifest options for Android * Android Metrics batch processor and factory * Only send user attributes if sendDefaultPii is true * Remove Experimental Annotation from Metrics Options * Add unit tests for Metrics * Create SentryMetricsParameters for Metrics * Use uv for managing python version * fix * Add device and OS attributes to metrics * Add AI rules files for Metrics (and update feature flags rule) * Close and flush MetricsBatchProcessor from SentryClient * fix * Add E2E tests for Metrics * Final keyword in Metrics methods * Add Hint to Metrics * SentryMetricsParameters create shortcut for attributes map * Automatically use SentryOptions.Metrics.BeforeSendMetricCallback Spring beans * Rename sample API param, remove sleep * Create MetricsUnit constants * Format code * Metrics Options (#4980) * feat(metrics): [Trace Metrics 2] MetricsApi stub (#4981) * Metrics Options * MetricsApi stub * More PR review changes (#5028) * Some more PR review changes * Format code --------- Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io> * changelog * non nullable trace id * error log now says metric instead of log --------- Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io> Co-authored-by: lcian <17258265+lcian@users.noreply.github.com>
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.

📜 Description
Add a stubbed version of Metrics API to the SDK. Will be fleshed out in follow-up PRs.
💡 Motivation and Context
💚 How did you test it?
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps