From 3a4fb4a130ca1b7b3a3ce5dfc51e16d4555de149 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 13 Apr 2026 13:22:06 +0000 Subject: [PATCH] fix(skill-drift): update cocoa, php, react-native skills with new SDK options - sentry-cocoa-sdk: add strictTraceContinuation + orgId options (sentry-cocoa#7705) - sentry-php-sdk: add metric_flush_threshold config flag (sentry-php#2059) - sentry-react-native-sdk: add attachAllThreads iOS option (sentry-react-native#5960) Co-Authored-By: Claude Sonnet 4.6 --- skills/sentry-cocoa-sdk/SKILL.md | 2 ++ skills/sentry-php-sdk/references/metrics.md | 22 +++++++++++++++++++++ skills/sentry-react-native-sdk/SKILL.md | 1 + 3 files changed, 25 insertions(+) diff --git a/skills/sentry-cocoa-sdk/SKILL.md b/skills/sentry-cocoa-sdk/SKILL.md index eda1ab7b..60628cf9 100644 --- a/skills/sentry-cocoa-sdk/SKILL.md +++ b/skills/sentry-cocoa-sdk/SKILL.md @@ -301,6 +301,8 @@ For each feature: `Read ${SKILL_ROOT}/references/.md`, follow steps exa | `sampleRate` | `Float` | `1.0` | Error event sample rate | | `beforeSend` | `Closure` | `nil` | Hook to mutate/drop error events | | `onCrashedLastRun` | `Closure` | `nil` | Called on next launch after a crash | +| `strictTraceContinuation` | `Bool` | `false` | Reject incoming traces from other orgs; validates `org_id` in baggage headers (sentry-cocoa ≥9.10.0) | +| `orgId` | `String?` | `nil` | Organization ID for strict trace validation; auto-parsed from DSN host (e.g. `o123.ingest.sentry.io` → `"123"`) if not set explicitly | ### Environment Variables diff --git a/skills/sentry-php-sdk/references/metrics.md b/skills/sentry-php-sdk/references/metrics.md index f96ade9f..98c647be 100644 --- a/skills/sentry-php-sdk/references/metrics.md +++ b/skills/sentry-php-sdk/references/metrics.md @@ -116,6 +116,27 @@ Metrics are buffered in a ring buffer (capacity: 1000 entries): **Buffer limit:** When more than 1000 metrics are buffered, the oldest entries are dropped. Flush periodically in high-volume scripts. +## Auto-Flush Threshold + +`metric_flush_threshold` automatically flushes the buffer once the metric count reaches the configured value. Use this to avoid buffer overflow in high-volume scripts without manual flush calls: + +**PHP / Laravel:** +```php +\Sentry\init([ + 'dsn' => '___PUBLIC_DSN___', + 'metric_flush_threshold' => 500, // flush automatically after 500 metrics +]); +``` + +**Symfony:** +```yaml +sentry: + options: + metric_flush_threshold: 500 +``` + +When `metric_flush_threshold` is not set, the SDK uses the ring buffer capacity (1000 entries) as the implicit limit. + ## Symfony Configuration ```yaml @@ -123,6 +144,7 @@ sentry: options: enable_metrics: true # default: true attach_metric_code_locations: true # attach file/line info + metric_flush_threshold: 500 # auto-flush after N metrics (optional) before_send_metric: 'App\Sentry\BeforeSendMetricCallback' ``` diff --git a/skills/sentry-react-native-sdk/SKILL.md b/skills/sentry-react-native-sdk/SKILL.md index 9eedbb9a..537c5e4b 100644 --- a/skills/sentry-react-native-sdk/SKILL.md +++ b/skills/sentry-react-native-sdk/SKILL.md @@ -569,6 +569,7 @@ For each feature: `Read ${SKILL_ROOT}/references/.md`, follow steps exa | `enableAutoPerformanceTracing` | `boolean` | `true` | Auto performance instrumentation | | `enableNdkScopeSync` | `boolean` | `true` | Java→NDK scope sync (Android) | | `attachThreads` | `boolean` | `false` | Auto-attach all threads on crash (Android) | +| `attachAllThreads` | `boolean` | `false` | Attach full stack traces for all threads to every captured event (iOS only, requires Cocoa SDK ≥9.9.0) | | `autoInitializeNativeSdk` | `boolean` | `true` | Set `false` for manual native init | | `onReady` | `function` | — | Callback after native SDKs initialize |