Skip to content

Conversation

@philprime
Copy link
Member

@philprime philprime commented Dec 2, 2025

📜 Description

This pull request introduces a new metrics API to the codebase, allowing clients to record custom metrics such as counts, distributions, and gauges. The API is exposed via the SentrySDK.metrics property and is designed for future extensibility, though the current implementation is a no-op.

This PR also adds an example UI to manually collect metrics in iOS-Swift.

💡 Motivation and Context

Closes #6949

💚 How did you test it?

  • Added unit tests

📝 Checklist

You have to check all boxes before merging:

  • 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.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 2, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 781a115

@philprime philprime marked this pull request as draft December 2, 2025 13:42
@codecov
Copy link

codecov bot commented Dec 2, 2025

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

@philprime philprime changed the base branch from philprime/metrics-bootstrap to philprime/metrics December 2, 2025 14:33
@philprime philprime force-pushed the philprime/metrics-public-api branch from 7158dfc to 87379ed Compare December 2, 2025 14:34
@philprime philprime force-pushed the philprime/metrics-public-api branch from 4c30f13 to 02c3573 Compare December 2, 2025 15:23
@philprime philprime changed the base branch from philprime/metrics to philprime/metrics-envelope December 2, 2025 15:26
@philprime philprime force-pushed the philprime/metrics-public-api branch from 02c3573 to 1ab754c Compare December 2, 2025 15:32
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.

2 participants