From fb91fa87c6bdad4677db5aafffa9068bac1e2cc3 Mon Sep 17 00:00:00 2001 From: NinjaLikesCheez Date: Thu, 7 May 2026 13:04:06 +0200 Subject: [PATCH] docs(apple): Document Se tas a supported metric attribute type Add Set, Set, Set, Set, and Set to the list of supported SentryAttributeValue types in the Apple metrics docs, following the addition of Set conformance in sentry-cocoa#7876. Co-Authored-By: Claude Sonnet 4.6 --- platform-includes/metrics/usage/apple.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform-includes/metrics/usage/apple.mdx b/platform-includes/metrics/usage/apple.mdx index 02b971abfcb5a..04313282bcfb7 100644 --- a/platform-includes/metrics/usage/apple.mdx +++ b/platform-includes/metrics/usage/apple.mdx @@ -86,6 +86,7 @@ The SDK uses the `SentryAttributeValue` protocol to provide **compile-time type **Supported attribute types:** - **Scalar types**: `String`, `Bool`, `Int`, `Double`, `Float` - **Array types**: `[String]`, `[Bool]`, `[Int]`, `[Double]`, `[Float]` +- **Set types**: `Set`, `Set`, `Set`, `Set`, `Set` The protocol automatically handles type conversion and validation, so you can use Swift's native types directly in your code. Invalid types will be caught at compile time, preventing runtime errors. @@ -102,7 +103,8 @@ SentrySDK.metrics.count( "build_number": 123, // Int - passed directly "is_premium": true, // Bool - passed directly "success_rate": 0.95, // Double - passed directly - "tags": ["production", "v2"] // [String] - passed directly + "tags": ["production", "v2"], // [String] - passed directly + "features": Set(["darkMode", "beta"]) // Set - passed directly ] ) ```