Skip to content

v0 [2/5]: Android — Kotlin core, Nitro adapter, native-first init - #22

Draft
adhorodyski wants to merge 1 commit into
stack/1-js-sdkfrom
stack/2-android
Draft

adhorodyski wants to merge 1 commit into
stack/1-js-sdkfrom
stack/2-android

Conversation

@adhorodyski

@adhorodyski adhorodyski commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

What

  • Core (android/src/core): seam spans as lazy ReadableSpan/SpanData, config, endpoint + headers (underscore-host fallback), explicit parenting, sticky init (R16)
  • Adapter: HybridOtel + public RNOtel helpers (RNOtel.start)
  • Consumer R8 rules for minifying apps; otel API exposed as api
  • android/core-jvm + fast-jvm stage; *.android.otlp.json expected files (incl. two device-drafted ones)

Verified locally

bun verify static fast-js fast-jvm: 16 fixtures match their android files; :react-native-open-telemetry:compileReleaseKotlin green.

Not in this PR

The example app wiring and device runs land in #24.

Decisions for you (defaults applied; override with spec: comments)

  1. minSdk 26.
  2. Expected files: the *.android.otlp.json files 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: #21 JS SDK → #22 Android → #23 iOS → #24 examples + e2e → #25 ops. Each PR is one squashed commit holding its area in final form (later review fixes folded in); the stack top matches v0-impl except one stale CI comment fixed in #25. Full history: v0-impl / #20. Nothing publishes: release runs only after CI on main, and the npm environment does not exist yet.

🤖 Generated with Claude Code

…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant