Repository navigation
v0 [5/7]: iOS — Swift core, Nitro adapter, two pods, Expo config plugin - #23
Merged
Merged
Conversation
This was referenced Nov 25, 2026
adhorodyski
force-pushed
the
stack/3-ios
branch
from
November 25, 2026 16:25
dd1d3d3 to
a85a6d8
Compare
This was referenced Nov 25, 2026
adhorodyski
force-pushed
the
stack/3-ios
branch
from
November 25, 2026 16:45
a85a6d8 to
669292c
Compare
adhorodyski
force-pushed
the
stack/3-ios
branch
from
November 25, 2026 18:38
669292c to
81ec9eb
Compare
adhorodyski
force-pushed
the
stack/3-ios
branch
from
November 25, 2026 18:50
81ec9eb to
ae98ef3
Compare
adhorodyski
force-pushed
the
stack/3-ios
branch
from
November 25, 2026 18:56
ae98ef3 to
44f63a4
Compare
adhorodyski
force-pushed
the
stack/3-ios
branch
from
November 25, 2026 19:03
44f63a4 to
37f13a6
Compare
adhorodyski
force-pushed
the
stack/3-ios
branch
3 times, most recently
from
November 25, 2026 19:22
7a648cb to
217103a
Compare
adhorodyski
force-pushed
the
stack/3-ios
branch
2 times, most recently
from
November 25, 2026 20:10
63617f0 to
35234f6
Compare
adhorodyski
force-pushed
the
stack/3-ios
branch
from
November 25, 2026 20:41
765599f to
14a15da
Compare
…ds and the Expo config plugin Layer 3 of the v0 stack (squashed from v0-impl, PR #20): - core (ios/Core): seam spans built into SpanData, config, endpoint and headers (envVarHeaders, gzip), explicit parenting, sticky init (R16) - adapter: HybridOtel and the public RNOtel helpers (RNOtel.start native-first init) - ReactNativeOpenTelemetryCore pod + the Nitro adapter pod (R24); app.plugin.js adds the Core pod line for Expo - Package.swift + verify stage fast-swift: every hand-off fixture through the Swift core, compared to *.ios.otlp.json - static: the Swift packageVersion must match package.json Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Under CPU load a backgrounded app can be starved for ~15 s despite its background task: the export request stalls until the app is reopened, which is the background-flush e2e failure on CI. Reproduced locally under load (about half of first attempts failed, 14.8 s stalls); with willResignActive 12 of 12 passed first try. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drops `tracesUrl` and its test, matching JS and Android: `export.url` goes to the OTLP exporter unchanged. The fixture replay passes the collector's `/v1/traces` URL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mirrors the Android cleanup: AttributesTests keeps the beyond-long and 2^63 bounds, the short-HrTime guard and the SpanKind mapping (the rest is pinned by the replayed odd-attributes and rich-span fixtures); ParentingTests is one round trip plus the non-remote check, with no upstream tracer; InitTests drops the null-config-after-init case. TimeRoundTripTests is removed: it measured opentelemetry-swift's `Date` precision, not our code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Package.swift existed only to run ios/CoreTests with `swift test` on the host; apps build ios/Core through the ReactNativeOpenTelemetryCore pod. The device e2e on ios-bare and ios-expo compares against the same `.ios.otlp.json` files. Also drops it from the npm `files`, the pack check and .gitignore. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eam copy in the core The core pod can't touch Nitro's Swift structs (they are typealiases of C++ structs and need C++ interop, which the app's AppDelegate does not have), but the adapter pod can. JsReadableSpan and the number rule move into the adapter and read Nitro's SeamSpan directly; the core's `handOff` takes otel `ReadableSpan`s and CoreConfig takes otel attributes. SeamModel.swift (the hand-kept copy of the seam types) and HybridOtel's 1:1 mapping are gone. The adapter pod declares opentelemetry-swift-core too, since it now imports the SDK. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
adhorodyski
force-pushed
the
stack/3-ios
branch
from
November 25, 2026 20:41
14a15da to
a112505
Compare
adhorodyski
marked this pull request as ready for review
November 25, 2026 20:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
ios/Core): takes opentelemetry-swift types only (ReadableSpan, attributes); config, endpoint + headers (envVarHeaders, gzip), explicit parenting, sticky init (R16)ios/Adapter, C++ interop):HybridOtelandJsReadableSpan, which buildsSpanDatastraight from Nitro's seam structs (they are C++-backed, so the core can't touch them). PublicRNOtelhelpers live in the core podReactNativeOpenTelemetryCore+ the Nitro adapter;app.plugin.jsadds the Core pod line for Expo*.ios.otlp.jsonexpected files, compared by the device e2e in v0 [6/7]: example apps (bare, Expo) and device and web e2e #24. No host-side Swift tests:Package.swiftandios/CoreTestsare removedpackageVersionmust match package.jsonVerified locally
bun verify static fast-js: 36 + 47 tests green. On top of #24: bare example release build in test mode, thenE2E_TARGET=ios-bare bun verify --e2e e2e: 24 passed, 3 skipped.Not in this PR
Pod install / app build of the adapter is first proven in #24.
Decisions for you (defaults applied; override with
spec:comments)flagsortraceState, or the scopeschemaUrl. This is recorded as a limitation; the encoder is not reimplemented.TRACEPARENTenvironment variable becomes the parent of every root span (upstream behaviour).pod 'ReactNativeOpenTelemetryCore'to their Podfile; Expo apps get the line fromapp.plugin.js.podspecPath.*.ios.otlp.jsonfiles need your review.willResignActive, notdidEnterBackground(second commit). Spec §9.4 says "when the app goes to background".willResignActivecomes earlier and also fires for transient interruptions such as Control Center or a call; the extra flush there is harmless.Part of the v0 stack that replaces #20 for review, bottom-up: #21 context → #26 SDK → #27 JS scenarios → #22 Android → #23 iOS → #24 examples + e2e → #25 ops. Review fixes land as new commits on the layer they belong to, and the layers above are rebased. History before the split:
v0-impl/ #20. Nothing publishes: release runs only after CI onmain, and the npm environment does not exist yet.🤖 Generated with Claude Code