Skip to content

Add Metrics API support#1214

Open
tustanivsky wants to merge 42 commits intomainfrom
feat/metrics
Open

Add Metrics API support#1214
tustanivsky wants to merge 42 commits intomainfrom
feat/metrics

Conversation

@tustanivsky
Copy link
Collaborator

@tustanivsky tustanivsky commented Feb 2, 2026

This PR adds Sentry Metrics API support to the Unreal plugin with three metric types: counter, distribution and gauge.

Closes #1213

Key changes

  • Add AddCount, AddDistribution and AddGauge functions to Sentry subsystem interface along with their overloads that allow setting custom metric attributes
  • Add FSentryMeasurementUnit struct for type-safe unit specification in Blueprints, covering duration, information, fraction and custom units
  • Add USentryMetric data class allowing to read/write individual metric item properties (value, type, unit, attributes)
  • Add USentryBeforeMetricHandler hook to filter/edit metrics before sending them to Sentry
  • Add unit tests covering USentryMetric and USentryBeforeMetricHandler functionality
  • Update sample app to manually test metrics capturing

Platform support

  • Windows/Linux
  • Android
  • Mac/iOS (not available due to current Cocoa SDK limitations)
  • Consoles (will be addressed via separate PRs in plugin extension repos)

Related items

Documentation

@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2026

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


Internal Changes 🔧

Deps

  • Update Native SDK to v0.12.6 by github-actions in #1219
  • Update Cocoa SDK to v9.4.0 by github-actions in #1218

Other

  • Add Metrics API support by tustanivsky in #1214

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2026

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

Generated by 🚫 dangerJS against 4f6a68d

@tustanivsky tustanivsky marked this pull request as ready for review February 6, 2026 14:25
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

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 Unreal SDK

3 participants