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 ] ) ```