sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

Sentry Metrics for Cocoa (iOS)

Open dingsdax opened this issue 2 months ago • 2 comments

https://develop.sentry.dev/sdk/telemetry/metrics/

Add support for Sentry Metrics to the Cocoa (iOS) SDK!

This will enable users to record counters, gauges, and distributions.

  1. Define the Metrics Protocol and trace_metric envelope type in the SDK.
  2. Add the Public API (SDK options and methods) as per the docs.
  3. Make sure the the SDK follow the documented behavior.
  4. Attach default attributes and optional user attributes to the SDK as per docs.
  5. Follow requirements for rate limiting, buffering, batching & flushing and build in measures to prevent excessive memory usage.

For general feedback & questions about Sentry Metrics use this GH discussion; for Cocoa (iOS) SDK specific feedback & questions use the comment functionality on this GH issue.

dingsdax avatar Nov 18 '25 13:11 dingsdax

COCOA-970

linear[bot] avatar Nov 18 '25 13:11 linear[bot]

Customer expressed the need for this as they are now forced to create Transactions to attach measurements to it which is not ideal.

Angelodaniel avatar Dec 12 '25 16:12 Angelodaniel