Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: Add usage note to shouldContinueTrace explaining intended consu…
…mers
  • Loading branch information
antonis committed Apr 8, 2026
commit e22dc868c969d0aa39a940831d5bf0a86a5b168f
7 changes: 7 additions & 0 deletions Sources/Swift/State/SentryPropagationContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
/// Determines whether a trace should be continued based on the incoming baggage org ID
/// and the SDK options.
///
/// This method is intentionally not called from the Cocoa SDK's own production code because
/// the Cocoa SDK is a mobile client SDK that does not receive incoming HTTP requests with
/// trace headers. It is exposed as a public utility for:
/// - Hybrid SDKs (React Native, Flutter, Capacitor) that handle inbound trace validation
/// in their JS/Dart layer and use the Cocoa SDK for options storage and outbound propagation
/// - Any consumer that needs to validate incoming traces against org ID
///
/// Decision matrix:
/// | Baggage org | SDK org | strict=false | strict=true |
/// |-------------|---------|-------------|-------------|
Expand Down
Loading