Repository navigation
v0 [4/7]: Android — Kotlin core, Nitro adapter, native-first init - #22
Merged
Merged
Conversation
This was referenced Nov 25, 2026
adhorodyski
force-pushed
the
stack/2-android
branch
from
November 25, 2026 16:02
28cbced to
a848f46
Compare
adhorodyski
force-pushed
the
stack/2-android
branch
from
November 25, 2026 16:25
a848f46 to
0bc5234
Compare
adhorodyski
changed the base branch from
stack/1-js-sdk
to
stack/1c-scenarios
November 25, 2026 16:26
This was referenced Nov 25, 2026
adhorodyski
force-pushed
the
stack/2-android
branch
from
November 25, 2026 16:45
0bc5234 to
18fe824
Compare
adhorodyski
force-pushed
the
stack/2-android
branch
from
November 25, 2026 18:38
18fe824 to
a98a215
Compare
adhorodyski
force-pushed
the
stack/2-android
branch
2 times, most recently
from
November 25, 2026 18:56
af46b6e to
4efb1a0
Compare
adhorodyski
force-pushed
the
stack/2-android
branch
2 times, most recently
from
November 25, 2026 19:04
cb3e67a to
d11d57d
Compare
adhorodyski
force-pushed
the
stack/2-android
branch
from
November 25, 2026 19:20
d11d57d to
eb78c72
Compare
adhorodyski
marked this pull request as ready for review
November 25, 2026 19:20
…irst init Layer 2 of the v0 stack (squashed from v0-impl, PR #20): - core (android/src/core): seam spans as lazy ReadableSpan/SpanData, config, endpoint and headers, explicit parenting, sticky init (R16) - adapter: HybridOtel and the public RNOtel helpers (RNOtel.start native-first init) - consumer R8 rules for minifying apps; the otel API exposed as `api` - android/core-jvm + verify stage fast-jvm: every hand-off fixture through the Kotlin core into a collector, compared to *.android.otlp.json Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drops `tracesUrl` (`/v1/traces` appending), matching the JS SDK: `export.url` and the JS-fallback `exportUrl` go 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>
…radle wrapper - AttributesTest: only the beyond-long bound. NaN, ±Infinity, -0, 2^53+2 and int/double arrays are already pinned by the odd-attributes and rich-span fixtures that FixtureExportTest replays. - ParentingTest: one round trip that also checks the parent is not remote; no otel-java tracer to re-test that a child takes its parent's ids. - InitTest: dropped the invalid-URL loop (EndpointTest and aFailedInitIsSticky cover it) and the null-config-after- init case (the same branch as initializing twice). - android/core-jvm has no Gradle wrapper of its own: fast-jvm runs example/android/gradlew (same Gradle 9.4.1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
adhorodyski
force-pushed
the
stack/2-android
branch
from
November 25, 2026 19:22
eb78c72 to
4fdeb31
Compare
Every replayed scenario also runs on the Android and iOS devices and compares against the same `.android.otlp.json` / `.ios.otlp.json` files, so the host-side replay duplicated it. Removes: - android/core-jvm (the JVM test project and its tests) and the fast-jvm stage; - the fast-swift stage and its CI job (the Swift tests themselves go in the iOS layer); - verify/fixtures (hand-off payloads), the fixture encoder and its test, the replay harness and the `seam` runner (handoff-basic, odd-attributes and export-headers are e2e-only); - v0's tracer-bullet e2e, which handed off the rich-span fixture. The NativeHandOffProcessor unit tests stay, in verify/jest/handoff.test.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With no JVM tests, the core no longer needs to stay free of Nitro: SeamModel.kt (a hand-kept copy of the seam types) and HybridOtel's 1:1 mapping are gone. JsSpanData wraps the Nitro SeamSpan, `attributesOf` reads Nitro's AttrValue, and CoreConfig takes otel `Attributes`. The core moves into src/main (no extra source set). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
android/src/main/java/com/callstack/otel/core): reads Nitro's seam structs directly and wraps them as lazyReadableSpan/SpanData, config, endpoint + headers (underscore-host fallback), explicit parenting, sticky init (R16)HybridOtel+ publicRNOtelhelpers (RNOtel.start)api*.android.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 native replay:android/core-jvm, the fast-jvm stage, the hand-off fixtures and theseamrunner are removed (the device e2e runs every scenario against the same files).Verified locally
bun verify static fast-js: 34 + 47 tests green;:react-native-open-telemetry:compileReleaseKotlingreen.Not in this PR
The example app wiring and device runs land in #24.
Decisions for you (defaults applied; override with
spec:comments)*.android.otlp.jsonfiles need your review. Two of them (nest-raf,event-emitter-listener) were drafted from device runs.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