Skip to content

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

Draft
adhorodyski wants to merge 2 commits into
stack/1c-scenariosfrom
stack/2-android
Draft

adhorodyski wants to merge 2 commits into
stack/1c-scenariosfrom
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, 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 on main, and the npm environment does not exist yet.

🤖 Generated with Claude Code

adhorodyski and others added 2 commits November 25, 2026 19:35
…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>
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