Skip to content

Conversation

@adinauer
Copy link
Member

📜 Description

Implement Trace Metrics.
This is just a collection branch to merge all the small PRs into and have a single commit for the feature on main.
See individual PRs merged into this one for more details and reviews of the changes.

💡 Motivation and Context

Closes #4906

💚 How did you test it?

📝 Checklist

  • I added GH Issue ID & Linear ID
  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

…rocessor_and_factory

feat(metrics): [Trace Metrics 15] Android Metrics batch processor and factory
…es_if_senddefaultpii_is_true

feat(metrics): [Trace Metrics 16] Only send user attributes if sendDefaultPii is true
…otation_from_metrics_options

feat(metrics): [Trace Metrics 17] Remove Experimental Annotation from Metrics Options
feat(metrics): [Trace Metrics 18] Add unit tests for Metrics
…ameters_for_metrics

feat(metrics): [Trace Metrics 19] Create `SentryMetricsParameters` for Metrics
…butes_to_metrics

feat(metrics): [Trace Metrics 20] Add device and OS attributes to metrics
…metrics_and_update_feature_flags_rule_

feat(metrics): [Trace Metrics 21] Add AI rules files for Metrics (and update feature flags rule)
…batchprocessor_from_sentryclient

feat(metrics): [Trace Metrics 22] Close and flush `MetricsBatchProcessor` from `SentryClient`
…hon_version

Use uv for managing python version
feat(metrics): [Trace Metrics 23] Add E2E tests for Metrics
feat(metrics): [Trace Metrics 25] Add Hint to Metrics
…_create_shortcut_for_attributes_map

feat(metrics): [Trace Metrics 26] SentryMetricsParameters create shortcut for attributes map
…yoptions.metrics.beforesendmetriccallback_spring_beans

feat(metrics): [Trace Metrics 27] Automatically use SentryOptions.Metrics.BeforeSendMetricCallback Spring beans
…_remove_sleep

feat(metrics): [Trace Metrics 29] Rename sample API param, remove sleep
…tants

feat(metrics): [Trace Metrics 30] Create MetricsUnit constants
@adinauer
Copy link
Member Author

cursor review

@adinauer
Copy link
Member Author

@sentry review

@cursor
Copy link

cursor bot commented Jan 14, 2026

🚨 Bugbot couldn't run

Something went wrong. Try again by commenting "Cursor review" or "bugbot run", or contact support (requestId: serverGenReqId_4c4f0fad-e021-4d8d-8f91-3e15cf830b0f).

@adinauer
Copy link
Member Author

cursor review

@cursor
Copy link

cursor bot commented Jan 14, 2026

🚨 Bugbot couldn't run

Something went wrong. Try again by commenting "Cursor review" or "bugbot run", or contact support (requestId: serverGenReqId_68595ca8-dfad-418d-9128-3e235a3a212d).

* Some more PR review changes

* Format code

---------

Co-authored-by: Sentry Github Bot <[email protected]>
@adinauer adinauer merged commit abf451a into main Jan 14, 2026
61 checks passed
@adinauer adinauer deleted the feat/trace-metrics branch January 14, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sentry Metrics for Java

5 participants