You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## DESCRIBE YOUR PR
Sentry Cocoa SDK has graduated Metrics from experimental to GA in
9.12.0. The `experimental.enableMetrics` and
`experimental.beforeSendMetric` properties are removed; the new
top-level `enableMetrics` and `beforeSendMetric` options replace them.
- Drop the `beta: true` flag and open-beta alert from the Apple Metrics
page
- Update Swift/Objective-C samples and option docs to use the top-level
`enableMetrics` and `beforeSendMetric`
- Document the removed `experimental.*` options with
`removedSince="9.12.0"` and pointers to the new GA options
- Drop the Metrics section from the Apple experimental features page
- Bump the requirements include to 9.12.0
The Swift-only limitation on `SentrySDK.metrics` is unchanged
(Objective-C support is tracked in getsentry/sentry-cocoa#6342).
Refs getsentry/sentry-cocoa#7842
## IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs
to go live.
- [x] Urgent deadline (GA date, etc.): April 28th, 2026
- [ ] Other deadline: <!-- ENTER DATE HERE -->
- [ ] None: Not urgent, can wait up to 1 week+
## SLA
- Teamwork makes the dream work, so please add a reviewer to your PRs.
- Please give the docs team up to 1 week to review your PR unless you've
added an urgent due date to it.
Thanks in advance for your help!
## PRE-MERGE CHECKLIST
*Make sure you've checked the following before merging your changes:*
- [ ] Checked Vercel preview for correctness, including links
- [ ] PR was reviewed and approved by any necessary SMEs (subject matter
experts)
- [ ] PR was reviewed and approved by a member of the [Sentry docs
team](https://github.com/orgs/getsentry/teams/docs)
---------
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/platforms/apple/common/configuration/options.mdx
+15-6Lines changed: 15 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -908,19 +908,16 @@ This option is only used when <PlatformIdentifier name="enableSpotlight" /> is s
908
908
</SdkOption>
909
909
910
910
## Metrics Options
911
-
<Alert>
912
-
This feature is currently in open beta. Please reach out on [GitHub](https://github.com/getsentry/sentry-cocoa/discussions) if you have feedback or questions. Features in beta are still in-progress and may have bugs. We recognize the irony.
When enabled, the SDK can send metrics to Sentry. Note that metrics are not collected automatically — you must manually call the `SentrySDK.metrics` API to record counters, gauges, and distributions.
918
915
919
916
Learn more in the <PlatformLink to="/metrics/">Metrics documentation</PlatformLink>.
**Removed in version 9.12.0** — Metrics has graduated to GA. Use the top-level <PlatformIdentifier name="enableMetrics" /> option instead. See [sentry-cocoa#7842](https://github.com/getsentry/sentry-cocoa/pull/7842).
Copy file name to clipboardExpand all lines: docs/platforms/apple/common/features/experimental-features.mdx
-16Lines changed: 0 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,22 +71,6 @@ Indicators for reliable environments include:
71
71
72
72
Learn more in the <PlatformLinkto="/session-replay/">Session Replay</PlatformLink> documentation.
73
73
74
-
## Metrics
75
-
76
-
Use <PlatformLinkto="/metrics/">Metrics</PlatformLink> to send counters, gauges, and distributions from your application to Sentry. Once in Sentry, these metrics can be viewed alongside related errors, traces, and logs, and searched using their individual attributes.
77
-
78
-
The metrics feature is enabled by default, but metrics are not collected automatically. You must manually call the `SentrySDK.metrics` API to record metrics (e.g., `SentrySDK.metrics.count(key: "my_counter", value: 1)`). To disable the feature entirely:
79
-
80
-
```swift
81
-
options.experimental.enableMetrics=false
82
-
```
83
-
84
-
```objc {tabTitle:Objective-C}
85
-
options.experimental.enableMetrics = NO;
86
-
```
87
-
88
-
Learn more in the <PlatformLinkto="/metrics/">Metrics documentation</PlatformLink>.
89
-
90
74
## Providing Feedback
91
75
92
76
Let us know if you have feedback through [GitHub issues](https://github.com/getsentry/sentry-cocoa/issues). Your feedback helps us improve these experimental features and move them toward stable releases.
Copy file name to clipboardExpand all lines: docs/platforms/apple/common/metrics/index.mdx
-8Lines changed: 0 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,18 +4,10 @@ sidebar_title: Metrics
4
4
description: "Metrics allow you to send, view and query counters, gauges, and distributions from your Sentry-configured apps to track application health and drill down into related traces, logs, and errors."
5
5
sidebar_order: 7
6
6
sidebar_section: features
7
-
beta: true
8
7
---
9
8
10
9
With Sentry's Application Metrics, you can send counters, gauges, and distributions from your applications to Sentry. Once in Sentry, these metrics can be viewed alongside relevant errors, traces, and logs, and searched using their individual attributes.
11
10
12
-
<Alert>
13
-
This feature is currently in open beta. Please reach out on
14
-
[GitHub](https://github.com/getsentry/sentry/discussions/102275) if you have
15
-
feedback or questions. Features in beta are still in-progress and may have
Copy file name to clipboardExpand all lines: platform-includes/metrics/options/apple.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,14 @@ The Sentry Cocoa SDK provides several options to configure how metrics are captu
2
2
3
3
### Enabling/Disabling Metrics
4
4
5
-
Metrics are enabled by default, but are not collected automatically. You must manually call the `SentrySDK.metrics` API to record metrics. If you need to disable metrics entirely, set `options.experimental.enableMetrics` to `false` when initializing the SDK:
5
+
Metrics are enabled by default, but are not collected automatically. You must manually call the `SentrySDK.metrics` API to record metrics. If you need to disable metrics entirely, set `options.enableMetrics` to `false` when initializing the SDK:
6
6
7
7
```swift {tabTitle:Swift}
8
8
importSentry
9
9
10
10
SentrySDK.start { options in
11
11
options.dsn="___PUBLIC_DSN___"
12
-
options.experimental.enableMetrics=false// Metrics are enabled by default
12
+
options.enableMetrics=false// Metrics are enabled by default
0 commit comments