diff --git a/docs/superpowers/plans/2026-11-21-rn-otel-v0.md b/docs/superpowers/plans/2026-11-21-rn-otel-v0.md index 4d77bde..afa6f2f 100644 --- a/docs/superpowers/plans/2026-11-21-rn-otel-v0.md +++ b/docs/superpowers/plans/2026-11-21-rn-otel-v0.md @@ -28,6 +28,7 @@ - Android native init runs only in the main process. - Test mode is a **build flag**, never public API: JS `process.env.OTEL_TEST_MODE === '1'` inlined at bundle time; Android Gradle property `otelTestMode=true`; iOS `OTEL_TEST_MODE=1` at `pod install` (adds a Swift compilation condition). When on: JS IDs `0a…`, native IDs `0b…`, resource built from config only (no `telemetry.*`). Scenarios use explicit whole-µs timestamps from base **1767225600000000000 ns** (2026-01-01T00:00:00Z). - Expected files: `verify/expected/.shape.json` (hand-written, one per scenario) and `verify/expected/..otlp.json` (drafted with `--update`), platform ∈ `js | android | ios | web`, OTLP/JSON with hex IDs. `verify/` is behind `CODEOWNERS`. Any new or changed expected file needs the author's review before the task is done. + > Superseded during review: one `verify/expected/.otlp.json` per scenario for every platform; no shape files. iOS's known opentelemetry-swift gaps (time rounding, unwritten flags/traceState/schemaUrl) are accepted in the compare step only. - Fixture JSON encodes `NaN`, `Infinity`, `-Infinity`, `-0` as `{"$num": ""}`. - `e2e` pinned to `0.24.0`; CI sets `E2E_TELEMETRY_DISABLED=1`. diff --git a/docs/superpowers/specs/2026-11-10-rn-otel-design.md b/docs/superpowers/specs/2026-11-10-rn-otel-design.md index f5a825a..4b6ab59 100644 --- a/docs/superpowers/specs/2026-11-10-rn-otel-design.md +++ b/docs/superpowers/specs/2026-11-10-rn-otel-design.md @@ -585,11 +585,12 @@ tests: they don't care about internals, so internals can be rewritten freely. ### 9.1 Scenarios and expected files are the spec - **One scenario per guarantee, named after it.** `verify/scenarios/nest-after-await.ts` - pairs with `verify/expected/nest-after-await..otlp.json`. The file name is the + pairs with `verify/expected/nest-after-await.otlp.json`. The file name is the guarantee's ID; no separate registry or coverage check. - Expected files are the exact **OTLP/JSON** payload (OTLP's JSON encoding: hex trace/span IDs, not the generic protobuf JSON base64 mapping). Plain equality; valid OTLP that can be - POSTed to a collector or viewed in Jaeger as-is. Per-platform files are accepted. + POSTed to a collector or viewed in Jaeger as-is. **One file per scenario for every platform** + (JS, web, Android, iOS): OTLP is standardized and every platform must report the same. Prior art: Collector goldens, upstream test hooks (§14 P17–P19). - **Spec first:** the expected file is written (agent drafts, human reviews) before the code that makes it pass. With explicit timestamps and sequential IDs, exact values are @@ -600,8 +601,8 @@ tests: they don't care about internals, so internals can be rewritten freely. flag for the bare and Expo apps; no test fields in the public API or the seam config: - **explicit timestamps**: v0 scenarios create all spans themselves, so they pass `startTime` / `end(t)` explicitly (JS and native), in whole microseconds. iOS cannot - represent them exactly: opentelemetry-swift exports `Date`, a ~238–256 ns grid, so the `ios` - files record the quantized values (R22, measured floor in verify/VERIFY.md). Clock stubs (Java `setClock`/`TestClock` in test source sets + represent them exactly: opentelemetry-swift exports `Date`, a ~238–256 ns grid, so iOS times + are compared within 256 ns (R22, measured floor in verify/VERIFY.md). Clock stubs (Java `setClock`/`TestClock` in test source sets only; Swift `with(clock:)`) are only a fallback for implicit reads. - sequential test ID generators, namespaced per side (JS `0a…01`, native `0b…01`) via upstream hooks: JS `sdk-trace` `idGenerator`, Java `setIdGenerator`, Swift @@ -611,15 +612,13 @@ tests: they don't care about internals, so internals can be rewritten freely. is random). Reorders, never rewrites. - concurrency scenarios are serialized deterministically (JS is single-threaded; native spans in scenarios are started synchronously from JS). -- **Shape files and parity**: each scenario has one hand-written, reviewed - `verify/expected/.shape.json` (trace partitions, span names, kinds, parent - links, link targets, status, attribute keys and types; no IDs or times). Every platform's - output is reduced to a shape and must equal it, so all platforms agree with each other by - construction. Shapes are written first; exact per-platform files are then drafted with - `--update` and reviewed (council review: hand-writing 30+ exact OTLP trees puts the bugs - in the expected files). Known v0 gap, accepted: opentelemetry-swift 2.6's OTLP encoder never - writes span/link `flags`, span/link `traceState` or the scope `schemaUrl`, so the `ios` files - lack them (shapes don't cover them; no encoder reimplementation, see verify/VERIFY.md). +- **Parity by construction**: every platform compares against the same file, so they agree + with each other. Files are drafted with `--update` and reviewed (council review: + hand-writing 30+ exact OTLP trees puts the bugs in the expected files). The one exception + is iOS, in a single function of the compare step: opentelemetry-swift 2.6 rounds times + (above) and its OTLP encoder never writes span/link `flags`, span/link `traceState` or the + scope `schemaUrl`, so those are not compared on iOS (no encoder reimplementation, see + verify/VERIFY.md). iOS never writes the shared file. A scenario and its expected file, roughly: @@ -636,7 +635,7 @@ export default scenario('nest-after-await', async ({ tracer, at }) => { // at( ``` ```json -// verify/expected/nest-after-await.android.otlp.json (excerpt) +// verify/expected/nest-after-await.otlp.json (excerpt) { "resourceSpans": [{ "resource": { "attributes": [{ "key": "service.name", "value": { "stringValue": "verify" } }] }, "scopeSpans": [{ @@ -656,7 +655,7 @@ A failure, as an agent sees it: ``` ✗ nest-after-await [android] span 0a00000000000002 "after_await" parentSpanId expected 0a00000000000001 got (none) - expected: verify/expected/nest-after-await.android.otlp.json + expected: verify/expected/nest-after-await.otlp.json actual: verify/artifacts/nest-after-await.android.otlp.json scenario: verify/scenarios/nest-after-await.ts ``` @@ -697,14 +696,14 @@ flowchart LR sc --> e2e["e2e: iOS / Android / web
(every PR)"] js --> fc e2e --> fc - fc[("Fake collector
OTLP → OTLP/JSON")] --> cmp{"exact compare
+ parity shape"} + fc[("Fake collector
OTLP → OTLP/JSON")] --> cmp{"exact compare
(one file, all platforms)"} exp[("verify/expected
(CODEOWNERS)")] --> cmp cmp --> out["structured diff
+ verify/artifacts"] ``` - **Native cores are proven on devices:** the Kotlin and Swift cores have no host-side test runs. The device e2e runs every scenario through the real seam and native core and compares - against the same `*.android` / `*.ios` expected files. + against the same expected file as JS and web. - **Fake collector**: a small Node OTLP/HTTP receiver decoding protobuf with the official `opentelemetry-proto` definitions and producing OTLP/JSON (GitHub macOS runners can't run Docker, so no Collector image). @@ -868,7 +867,7 @@ Left out until needed: 13. Trace-model rules: links for multi-cause renders, marked heuristic attribution (5). 14. Sequencing, with the real-RN-app context milestone first (8). 15. Test mode as a build flag; explicit whole-µs timestamps in scenarios; attribute/event - sorting; parity shape (9.1). + sorting; one expected file for all platforms (9.1). 16. Native cores proven by device e2e against the same expected files (9.2). 17. One endpoint meaning on every platform (the traces endpoint, used as given); returned handle `{ tracerProvider, forceFlush, shutdown }` (4.4). 18. No performance or compliance jobs in CI: the upstream OTLP exporters own the wire format; `example/collector/` runs the official Collector by hand (9.4). diff --git a/verify/VERIFY.md b/verify/VERIFY.md index 19b3c94..f85e221 100644 --- a/verify/VERIFY.md +++ b/verify/VERIFY.md @@ -29,17 +29,18 @@ cd ../ios && OTEL_TEST_MODE=1 pod install && OTEL_TEST_MODE=1 xcodebuild -worksp ``` The Kotlin and Swift cores have no host-side test runs: the `e2e` stage runs every scenario on Android and iOS -through the real seam and native core and compares against `.android.otlp.json` / `.ios.otlp.json`. - -**iOS time floor (R22).** opentelemetry-swift 2.6 keeps times as `Date` and exports -`UInt64(timeIntervalSince1970 * 1e9)`, so whole-µs seam times come back on a ~238–256 ns grid, truncated -(measured once over `at(0…10_000)` and `at(1_000_000_000)`: max |error| 240 ns, 314 of 10 002 exact). -`*.ios.otlp.json` record these quantized values as emitted (deterministic); shapes ignore times. - -**iOS vs Android/JS goldens.** Apart from times, the `ios` files differ only by what the opentelemetry-swift 2.6 OTLP -encoder (`SpanAdapter`) never writes: span `flags` (257), span `traceState`, link `flags`, link `traceState`, and the -scope `schemaUrl` on `ScopeSpans`. The core passes them all into `SpanData`; the exporter drops them. Accepted for v0 -(no encoder reimplementation); `rich-span` exercises span flags, link flags/traceState and the scope `schemaUrl`. +through the real seam and native core and compares against the scenario's one `.otlp.json`. + +**One expected file per scenario.** JS, web, Android and iOS report the same OTLP, so each scenario has one +`verify/expected/.otlp.json`. iOS differs only by two opentelemetry-swift 2.6 gaps, which the compare step +(`iosView` in `harness/compare.ts`) accepts on `ios` and nowhere else: +- **Times (R22):** opentelemetry-swift keeps times as `Date` and exports `UInt64(timeIntervalSince1970 * 1e9)`, so + whole-µs seam times come back rounded to a ~238–256 ns grid, either way (measured once over `at(0…10_000)` and + `at(1_000_000_000)`: max |error| 240 ns, 314 of 10 002 exact). iOS times may be off by up to 256 ns. +- **Fields its OTLP encoder (`SpanAdapter`) never writes:** span `flags` (257), span `traceState`, link `flags`, link + `traceState`, and the scope `schemaUrl` on `ScopeSpans`. The core passes them all into `SpanData`; the exporter drops + them. Accepted for v0 (no encoder reimplementation); `rich-span` exercises all of them. +iOS never writes the shared file (`VERIFY_UPDATE`, draft): its rounded times are not the reference. **iOS `TRACEPARENT` (upstream caveat).** opentelemetry-swift reads a `TRACEPARENT` environment variable at provider construction and makes it the parent of every root span, even with `setNoParent()`. Apps only see it when launched with @@ -49,11 +50,11 @@ it (Xcode scheme, `SIMCTL_CHILD_TRACEPARENT`). except the scenarios with their own e2e file. Each test cold-starts the app (R5). e2e is compare-only; On web, `forceFlush` latency follows the OTLP exporter's own retries (about 10 s worst case), not a native flush timeout; `collector-down` allows 10 s there. -`VERIFY_E2E_DRAFT=1` writes a **missing** `..otlp.json` from the device run and still fails the test +`VERIFY_E2E_DRAFT=1` writes a **missing** `.otlp.json` from the run (never from iOS) and still fails the test ("drafted …, review it"); existing files are never overwritten. Draft runs have no retries, so a drafting run always ends red. -Each target compares to its platform's files (`android-*` → `android`, `ios-*` → `ios`, `web` → `web`): the bare app inits native +Every target compares to the same file: the bare app inits native first (`RNOtel.start` in `MainApplication` / `AppDelegate`), the Expo app inits from JS (below), and ScenariosScreen -exports through `startReactNativeSdk` and the Kotlin or Swift core. One set of files for both apps is the proof that +exports through `startReactNativeSdk` and the Kotlin or Swift core. One file for both apps is the proof that the two init paths are equivalent. A scenario that only one app can run names targets (`android-bare`) instead of platforms in `targets`. @@ -135,9 +136,8 @@ HybridObjects: no native `testMode` line, scenarios get no `native`). - **Probe:** `babel-preset-expo` keeps native `async` on web; `example-expo/babel.config.js` adds the two async plugins for the web platform, so the bundle has no native `async`/`for await`; no `com.callstack.context.degraded` scope attribute in any web file. -- **Files:** every `*.web.otlp.json` is byte-identical to the scenario's `.js` file (`collector-down`, `handoff-basic`, - `odd-attributes` and `export-headers`, which have no `.js`, equal their `.android` file). The proto exporter and the web resource (`service.name` only in test mode) - change nothing visible. +- **Files:** web compares against the same `.otlp.json` as every other platform, with no exceptions. The proto + exporter and the web resource (`service.name` only in test mode) change nothing visible. - **collector-down:** the OTel JS exporter retries a 503 inside the export (backoff 1 s ×1.5, ±20 %), so the first `flush` resolves after the three refusals (~4.7 s; up to 5.7 s): the web flush timeout is 10 s. - **nest-timers-microtasks:** browsers have no `setImmediate`; there the `immediate` step is one more `setTimeout(0)`, @@ -225,12 +225,12 @@ check before Task 27; fix the T3 host's Java (or run the check through an e2e te ## Scenarios -One file per guarantee in `verify/scenarios/`, named after it, with a hand-written `verify/expected/.shape.json` -(the cross-platform parity contract). Exact `..otlp.json` files are drafted by the owning task with -`VERIFY_UPDATE=1` and reviewed by the author. `pending` scenarios report as `todo`; the owning task flips `pending` off. +One file per guarantee in `verify/scenarios/`, named after it, with one exact `verify/expected/.otlp.json` that +every platform compares against. It is drafted with `VERIFY_UPDATE=1` (or `VERIFY_E2E_DRAFT=1` for e2e-only scenarios, +from Android or web) and reviewed by the author. `pending` scenarios report as `todo`; the owning task flips `pending` off. -Shapes use the JS runner's resource, `["service.name"]`. Native test mode builds the resource from config only and -the example inits with no `serviceVersion` (R2), so native-first device runs match the same shapes. +Every file uses the JS runner's resource, `service.name` only. Native test mode builds the resource from config only and +the example inits with no `serviceVersion` (R2), so native-first device runs match the same files. e2e targets are android, ios and web unless the Runners column names them. @@ -268,7 +268,5 @@ e2e targets are android, ios and web unless the Runners column names them. Explicit `at(µs)` start/end times on every span; parents through `context.active()` (`startActiveSpan`), not explicit parent contexts. `opts.runners` defaults to `['jest', 'e2e']`, `opts.targets` to `['android', 'ios', 'web']` (platforms or target names like `android-bare`; the e2e harness skips other targets); `pending: true` until it passes. -2. Hand-write `verify/expected/.shape.json` in exactly `shapeOf()`'s format (traces ordered by first - span start, spans sorted by name, `kind` 1 = INTERNAL) and get it reviewed. -3. `bun verify` regenerates `verify/scenarios/index.ts`. Un-pend, draft the exact files with `VERIFY_UPDATE=1 bun verify` - (the shape must already match), have the author review them, then `bun verify` must be green. +2. `bun verify` regenerates `verify/scenarios/index.ts`. Un-pend, draft `.otlp.json` with + `VERIFY_UPDATE=1 bun verify`, have the author review it, then `bun verify` must be green. diff --git a/verify/expected/async-generator.ios.otlp.json b/verify/expected/async-generator.ios.otlp.json deleted file mode 100644 index 2de36e5..0000000 --- a/verify/expected/async-generator.ios.otlp.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "root", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000060160", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "gen.0", - "kind": 1, - "startTimeUnixNano": "1767225600000009984", - "endTimeUnixNano": "1767225600000011008", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000003", - "parentSpanId": "0a00000000000001", - "name": "loop.0", - "kind": 1, - "startTimeUnixNano": "1767225600000019968", - "endTimeUnixNano": "1767225600000020992", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000001", - "name": "gen.1", - "kind": 1, - "startTimeUnixNano": "1767225600000029952", - "endTimeUnixNano": "1767225600000030976", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000005", - "parentSpanId": "0a00000000000001", - "name": "loop.1", - "kind": 1, - "startTimeUnixNano": "1767225600000039936", - "endTimeUnixNano": "1767225600000040960", - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/async-generator.js.otlp.json b/verify/expected/async-generator.js.otlp.json deleted file mode 100644 index cbf84fd..0000000 --- a/verify/expected/async-generator.js.otlp.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "root", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000060000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "gen.0", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000003", - "parentSpanId": "0a00000000000001", - "name": "loop.0", - "kind": 1, - "startTimeUnixNano": "1767225600000020000", - "endTimeUnixNano": "1767225600000021000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000001", - "name": "gen.1", - "kind": 1, - "startTimeUnixNano": "1767225600000030000", - "endTimeUnixNano": "1767225600000031000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000005", - "parentSpanId": "0a00000000000001", - "name": "loop.1", - "kind": 1, - "startTimeUnixNano": "1767225600000040000", - "endTimeUnixNano": "1767225600000041000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/async-generator.android.otlp.json b/verify/expected/async-generator.otlp.json similarity index 100% rename from verify/expected/async-generator.android.otlp.json rename to verify/expected/async-generator.otlp.json diff --git a/verify/expected/async-generator.shape.json b/verify/expected/async-generator.shape.json deleted file mode 100644 index 295dfc2..0000000 --- a/verify/expected/async-generator.shape.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name":"gen.0","kind":1,"parent":"root","status":0,"links":[],"attributes":{}}, - {"name":"gen.1","kind":1,"parent":"root","status":0,"links":[],"attributes":{}}, - {"name":"loop.0","kind":1,"parent":"root","status":0,"links":[],"attributes":{}}, - {"name":"loop.1","kind":1,"parent":"root","status":0,"links":[],"attributes":{}}, - {"name":"root","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ]] -} diff --git a/verify/expected/async-generator.web.otlp.json b/verify/expected/async-generator.web.otlp.json deleted file mode 100644 index cbf84fd..0000000 --- a/verify/expected/async-generator.web.otlp.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "root", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000060000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "gen.0", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000003", - "parentSpanId": "0a00000000000001", - "name": "loop.0", - "kind": 1, - "startTimeUnixNano": "1767225600000020000", - "endTimeUnixNano": "1767225600000021000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000001", - "name": "gen.1", - "kind": 1, - "startTimeUnixNano": "1767225600000030000", - "endTimeUnixNano": "1767225600000031000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000005", - "parentSpanId": "0a00000000000001", - "name": "loop.1", - "kind": 1, - "startTimeUnixNano": "1767225600000040000", - "endTimeUnixNano": "1767225600000041000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/background-flush.ios.otlp.json b/verify/expected/background-flush.ios.otlp.json deleted file mode 100644 index d697f82..0000000 --- a/verify/expected/background-flush.ios.otlp.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "before_background", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000009984", - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/background-flush.android.otlp.json b/verify/expected/background-flush.otlp.json similarity index 100% rename from verify/expected/background-flush.android.otlp.json rename to verify/expected/background-flush.otlp.json diff --git a/verify/expected/background-flush.shape.json b/verify/expected/background-flush.shape.json deleted file mode 100644 index 4f28ee3..0000000 --- a/verify/expected/background-flush.shape.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name":"before_background","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ]] -} diff --git a/verify/expected/batching-shared-queue.ios.otlp.json b/verify/expected/batching-shared-queue.ios.otlp.json deleted file mode 100644 index aa5fd24..0000000 --- a/verify/expected/batching-shared-queue.ios.otlp.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "h1", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000001024", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000002", - "name": "h2", - "kind": 1, - "startTimeUnixNano": "1767225600000001792", - "endTimeUnixNano": "1767225600000003072", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000003", - "parentSpanId": "0a00000000000001", - "name": "h1.work", - "kind": 1, - "startTimeUnixNano": "1767225600000009984", - "endTimeUnixNano": "1767225600000011008", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000001", - "name": "h2.work", - "kind": 1, - "startTimeUnixNano": "1767225600000019968", - "endTimeUnixNano": "1767225600000020992", - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/batching-shared-queue.js.otlp.json b/verify/expected/batching-shared-queue.js.otlp.json deleted file mode 100644 index 0b41dc0..0000000 --- a/verify/expected/batching-shared-queue.js.otlp.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "h1", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000001000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000002", - "name": "h2", - "kind": 1, - "startTimeUnixNano": "1767225600000002000", - "endTimeUnixNano": "1767225600000003000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000003", - "parentSpanId": "0a00000000000001", - "name": "h1.work", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000001", - "name": "h2.work", - "kind": 1, - "startTimeUnixNano": "1767225600000020000", - "endTimeUnixNano": "1767225600000021000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/batching-shared-queue.android.otlp.json b/verify/expected/batching-shared-queue.otlp.json similarity index 100% rename from verify/expected/batching-shared-queue.android.otlp.json rename to verify/expected/batching-shared-queue.otlp.json diff --git a/verify/expected/batching-shared-queue.shape.json b/verify/expected/batching-shared-queue.shape.json deleted file mode 100644 index 90a3ec6..0000000 --- a/verify/expected/batching-shared-queue.shape.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name":"h1","kind":1,"parent":null,"status":0,"links":[],"attributes":{}}, - {"name":"h1.work","kind":1,"parent":"h1","status":0,"links":[],"attributes":{}}, - {"name":"h2.work","kind":1,"parent":"h1","status":0,"links":[],"attributes":{}} - ], [ - {"name":"h2","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ]] -} diff --git a/verify/expected/batching-shared-queue.web.otlp.json b/verify/expected/batching-shared-queue.web.otlp.json deleted file mode 100644 index 0b41dc0..0000000 --- a/verify/expected/batching-shared-queue.web.otlp.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "h1", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000001000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000002", - "name": "h2", - "kind": 1, - "startTimeUnixNano": "1767225600000002000", - "endTimeUnixNano": "1767225600000003000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000003", - "parentSpanId": "0a00000000000001", - "name": "h1.work", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000001", - "name": "h2.work", - "kind": 1, - "startTimeUnixNano": "1767225600000020000", - "endTimeUnixNano": "1767225600000021000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/captured-then.ios.otlp.json b/verify/expected/captured-then.ios.otlp.json deleted file mode 100644 index e4c96d7..0000000 --- a/verify/expected/captured-then.ios.otlp.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "parent", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000029952", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "kept", - "kind": 1, - "startTimeUnixNano": "1767225600000009984", - "endTimeUnixNano": "1767225600000011008", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000003", - "name": "lost", - "kind": 1, - "startTimeUnixNano": "1767225600000019968", - "endTimeUnixNano": "1767225600000020992", - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/captured-then.js.otlp.json b/verify/expected/captured-then.js.otlp.json deleted file mode 100644 index b57eb7e..0000000 --- a/verify/expected/captured-then.js.otlp.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "parent", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000030000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "kept", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000003", - "name": "lost", - "kind": 1, - "startTimeUnixNano": "1767225600000020000", - "endTimeUnixNano": "1767225600000021000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/captured-then.android.otlp.json b/verify/expected/captured-then.otlp.json similarity index 100% rename from verify/expected/captured-then.android.otlp.json rename to verify/expected/captured-then.otlp.json diff --git a/verify/expected/captured-then.shape.json b/verify/expected/captured-then.shape.json deleted file mode 100644 index dd40075..0000000 --- a/verify/expected/captured-then.shape.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name":"kept","kind":1,"parent":"parent","status":0,"links":[],"attributes":{}}, - {"name":"parent","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ], [ - {"name":"lost","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ]] -} diff --git a/verify/expected/captured-then.web.otlp.json b/verify/expected/captured-then.web.otlp.json deleted file mode 100644 index b57eb7e..0000000 --- a/verify/expected/captured-then.web.otlp.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "parent", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000030000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "kept", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000003", - "name": "lost", - "kind": 1, - "startTimeUnixNano": "1767225600000020000", - "endTimeUnixNano": "1767225600000021000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/collector-down.ios.otlp.json b/verify/expected/collector-down.ios.otlp.json deleted file mode 100644 index 693713a..0000000 --- a/verify/expected/collector-down.ios.otlp.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "work", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000009984", - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/collector-down.android.otlp.json b/verify/expected/collector-down.otlp.json similarity index 100% rename from verify/expected/collector-down.android.otlp.json rename to verify/expected/collector-down.otlp.json diff --git a/verify/expected/collector-down.shape.json b/verify/expected/collector-down.shape.json deleted file mode 100644 index efd8707..0000000 --- a/verify/expected/collector-down.shape.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name":"work","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ]] -} diff --git a/verify/expected/collector-down.web.otlp.json b/verify/expected/collector-down.web.otlp.json deleted file mode 100644 index 367c32e..0000000 --- a/verify/expected/collector-down.web.otlp.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "work", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000010000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/concurrent-interleaved.ios.otlp.json b/verify/expected/concurrent-interleaved.ios.otlp.json deleted file mode 100644 index 00a0eea..0000000 --- a/verify/expected/concurrent-interleaved.ios.otlp.json +++ /dev/null @@ -1,92 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "a", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000029952", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000002", - "name": "b", - "kind": 1, - "startTimeUnixNano": "1767225600000001024", - "endTimeUnixNano": "1767225600000030976", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000003", - "parentSpanId": "0a00000000000001", - "name": "a.1", - "kind": 1, - "startTimeUnixNano": "1767225600000009984", - "endTimeUnixNano": "1767225600000011008", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000002", - "name": "b.1", - "kind": 1, - "startTimeUnixNano": "1767225600000011008", - "endTimeUnixNano": "1767225600000012032", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000005", - "parentSpanId": "0a00000000000001", - "name": "a.2", - "kind": 1, - "startTimeUnixNano": "1767225600000019968", - "endTimeUnixNano": "1767225600000020992", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000006", - "parentSpanId": "0a00000000000002", - "name": "b.2", - "kind": 1, - "startTimeUnixNano": "1767225600000020992", - "endTimeUnixNano": "1767225600000022016", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000003", - "spanId": "0a00000000000007", - "name": "after.all", - "kind": 1, - "startTimeUnixNano": "1767225600000039936", - "endTimeUnixNano": "1767225600000040960", - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/concurrent-interleaved.js.otlp.json b/verify/expected/concurrent-interleaved.js.otlp.json deleted file mode 100644 index 3428488..0000000 --- a/verify/expected/concurrent-interleaved.js.otlp.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "a", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000030000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000002", - "name": "b", - "kind": 1, - "startTimeUnixNano": "1767225600000001000", - "endTimeUnixNano": "1767225600000031000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000003", - "parentSpanId": "0a00000000000001", - "name": "a.1", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000002", - "name": "b.1", - "kind": 1, - "startTimeUnixNano": "1767225600000011000", - "endTimeUnixNano": "1767225600000012000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000005", - "parentSpanId": "0a00000000000001", - "name": "a.2", - "kind": 1, - "startTimeUnixNano": "1767225600000020000", - "endTimeUnixNano": "1767225600000021000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000006", - "parentSpanId": "0a00000000000002", - "name": "b.2", - "kind": 1, - "startTimeUnixNano": "1767225600000021000", - "endTimeUnixNano": "1767225600000022000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000003", - "spanId": "0a00000000000007", - "name": "after.all", - "kind": 1, - "startTimeUnixNano": "1767225600000040000", - "endTimeUnixNano": "1767225600000041000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/concurrent-interleaved.android.otlp.json b/verify/expected/concurrent-interleaved.otlp.json similarity index 100% rename from verify/expected/concurrent-interleaved.android.otlp.json rename to verify/expected/concurrent-interleaved.otlp.json diff --git a/verify/expected/concurrent-interleaved.shape.json b/verify/expected/concurrent-interleaved.shape.json deleted file mode 100644 index a09217a..0000000 --- a/verify/expected/concurrent-interleaved.shape.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name":"a","kind":1,"parent":null,"status":0,"links":[],"attributes":{}}, - {"name":"a.1","kind":1,"parent":"a","status":0,"links":[],"attributes":{}}, - {"name":"a.2","kind":1,"parent":"a","status":0,"links":[],"attributes":{}} - ], [ - {"name":"b","kind":1,"parent":null,"status":0,"links":[],"attributes":{}}, - {"name":"b.1","kind":1,"parent":"b","status":0,"links":[],"attributes":{}}, - {"name":"b.2","kind":1,"parent":"b","status":0,"links":[],"attributes":{}} - ], [ - {"name":"after.all","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ]] -} diff --git a/verify/expected/concurrent-interleaved.web.otlp.json b/verify/expected/concurrent-interleaved.web.otlp.json deleted file mode 100644 index 3428488..0000000 --- a/verify/expected/concurrent-interleaved.web.otlp.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "a", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000030000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000002", - "name": "b", - "kind": 1, - "startTimeUnixNano": "1767225600000001000", - "endTimeUnixNano": "1767225600000031000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000003", - "parentSpanId": "0a00000000000001", - "name": "a.1", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000002", - "name": "b.1", - "kind": 1, - "startTimeUnixNano": "1767225600000011000", - "endTimeUnixNano": "1767225600000012000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000005", - "parentSpanId": "0a00000000000001", - "name": "a.2", - "kind": 1, - "startTimeUnixNano": "1767225600000020000", - "endTimeUnixNano": "1767225600000021000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000006", - "parentSpanId": "0a00000000000002", - "name": "b.2", - "kind": 1, - "startTimeUnixNano": "1767225600000021000", - "endTimeUnixNano": "1767225600000022000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000003", - "spanId": "0a00000000000007", - "name": "after.all", - "kind": 1, - "startTimeUnixNano": "1767225600000040000", - "endTimeUnixNano": "1767225600000041000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/cross-js-to-native.ios.otlp.json b/verify/expected/cross-js-to-native.ios.otlp.json deleted file mode 100644 index c0de431..0000000 --- a/verify/expected/cross-js-to-native.ios.otlp.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "js.parent", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000300032", - "status": {} - } - ] - }, - { - "scope": { - "name": "test-native" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0b00000000000001", - "parentSpanId": "0a00000000000001", - "name": "native.work", - "kind": 1, - "startTimeUnixNano": "1767225600000099840", - "endTimeUnixNano": "1767225600000199936", - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/cross-js-to-native.android.otlp.json b/verify/expected/cross-js-to-native.otlp.json similarity index 100% rename from verify/expected/cross-js-to-native.android.otlp.json rename to verify/expected/cross-js-to-native.otlp.json diff --git a/verify/expected/cross-js-to-native.shape.json b/verify/expected/cross-js-to-native.shape.json deleted file mode 100644 index f6088fd..0000000 --- a/verify/expected/cross-js-to-native.shape.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name":"js.parent","kind":1,"parent":null,"status":0,"links":[],"attributes":{}}, - {"name":"native.work","kind":1,"parent":"js.parent","status":0,"links":[],"attributes":{}} - ]] -} diff --git a/verify/expected/cross-native-to-js.ios.otlp.json b/verify/expected/cross-native-to-js.ios.otlp.json deleted file mode 100644 index a77c195..0000000 --- a/verify/expected/cross-native-to-js.ios.otlp.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0b000000000000000000000000000001", - "spanId": "0a00000000000001", - "parentSpanId": "0b00000000000001", - "name": "js.after_native", - "kind": 1, - "startTimeUnixNano": "1767225600000199936", - "endTimeUnixNano": "1767225600000300032", - "status": {} - } - ] - }, - { - "scope": { - "name": "test-native" - }, - "spans": [ - { - "traceId": "0b000000000000000000000000000001", - "spanId": "0b00000000000001", - "name": "native.work", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000099840", - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/cross-native-to-js.android.otlp.json b/verify/expected/cross-native-to-js.otlp.json similarity index 100% rename from verify/expected/cross-native-to-js.android.otlp.json rename to verify/expected/cross-native-to-js.otlp.json diff --git a/verify/expected/cross-native-to-js.shape.json b/verify/expected/cross-native-to-js.shape.json deleted file mode 100644 index 9eb4e94..0000000 --- a/verify/expected/cross-native-to-js.shape.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name":"js.after_native","kind":1,"parent":"native.work","status":0,"links":[],"attributes":{}}, - {"name":"native.work","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ]] -} diff --git a/verify/expected/error-in-callback.ios.otlp.json b/verify/expected/error-in-callback.ios.otlp.json deleted file mode 100644 index d33bfd1..0000000 --- a/verify/expected/error-in-callback.ios.otlp.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "parent", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000039936", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "throws", - "kind": 1, - "startTimeUnixNano": "1767225600000009984", - "endTimeUnixNano": "1767225600000011008", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000003", - "name": "root.next", - "kind": 1, - "startTimeUnixNano": "1767225600000029952", - "endTimeUnixNano": "1767225600000030976", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000001", - "name": "caught", - "kind": 1, - "startTimeUnixNano": "1767225600000019968", - "endTimeUnixNano": "1767225600000020992", - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/error-in-callback.js.otlp.json b/verify/expected/error-in-callback.js.otlp.json deleted file mode 100644 index 22eccaa..0000000 --- a/verify/expected/error-in-callback.js.otlp.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "parent", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000040000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "throws", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000003", - "name": "root.next", - "kind": 1, - "startTimeUnixNano": "1767225600000030000", - "endTimeUnixNano": "1767225600000031000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000001", - "name": "caught", - "kind": 1, - "startTimeUnixNano": "1767225600000020000", - "endTimeUnixNano": "1767225600000021000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/error-in-callback.android.otlp.json b/verify/expected/error-in-callback.otlp.json similarity index 100% rename from verify/expected/error-in-callback.android.otlp.json rename to verify/expected/error-in-callback.otlp.json diff --git a/verify/expected/error-in-callback.shape.json b/verify/expected/error-in-callback.shape.json deleted file mode 100644 index fb0c53c..0000000 --- a/verify/expected/error-in-callback.shape.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name":"caught","kind":1,"parent":"parent","status":0,"links":[],"attributes":{}}, - {"name":"parent","kind":1,"parent":null,"status":0,"links":[],"attributes":{}}, - {"name":"throws","kind":1,"parent":"parent","status":0,"links":[],"attributes":{}} - ], [ - {"name":"root.next","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ]] -} diff --git a/verify/expected/error-in-callback.web.otlp.json b/verify/expected/error-in-callback.web.otlp.json deleted file mode 100644 index 22eccaa..0000000 --- a/verify/expected/error-in-callback.web.otlp.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "parent", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000040000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "throws", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000003", - "name": "root.next", - "kind": 1, - "startTimeUnixNano": "1767225600000030000", - "endTimeUnixNano": "1767225600000031000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000001", - "name": "caught", - "kind": 1, - "startTimeUnixNano": "1767225600000020000", - "endTimeUnixNano": "1767225600000021000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/event-emitter-listener.ios.otlp.json b/verify/expected/event-emitter-listener.ios.otlp.json deleted file mode 100644 index 2dfddfc..0000000 --- a/verify/expected/event-emitter-listener.ios.otlp.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "emit", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000019968", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "listener", - "kind": 1, - "startTimeUnixNano": "1767225600000009984", - "endTimeUnixNano": "1767225600000011008", - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/event-emitter-listener.js.otlp.json b/verify/expected/event-emitter-listener.js.otlp.json deleted file mode 100644 index 71f62e7..0000000 --- a/verify/expected/event-emitter-listener.js.otlp.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "emit", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000020000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "listener", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/event-emitter-listener.android.otlp.json b/verify/expected/event-emitter-listener.otlp.json similarity index 100% rename from verify/expected/event-emitter-listener.android.otlp.json rename to verify/expected/event-emitter-listener.otlp.json diff --git a/verify/expected/event-emitter-listener.shape.json b/verify/expected/event-emitter-listener.shape.json deleted file mode 100644 index 2c0b8fe..0000000 --- a/verify/expected/event-emitter-listener.shape.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name":"emit","kind":1,"parent":null,"status":0,"links":[],"attributes":{}}, - {"name":"listener","kind":1,"parent":"emit","status":0,"links":[],"attributes":{}} - ]] -} diff --git a/verify/expected/event-emitter-listener.web.otlp.json b/verify/expected/event-emitter-listener.web.otlp.json deleted file mode 100644 index 71f62e7..0000000 --- a/verify/expected/event-emitter-listener.web.otlp.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "emit", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000020000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "listener", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/export-headers.ios.otlp.json b/verify/expected/export-headers.ios.otlp.json deleted file mode 100644 index f5daea6..0000000 --- a/verify/expected/export-headers.ios.otlp.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "headers", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000009984", - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/export-headers.android.otlp.json b/verify/expected/export-headers.otlp.json similarity index 100% rename from verify/expected/export-headers.android.otlp.json rename to verify/expected/export-headers.otlp.json diff --git a/verify/expected/export-headers.shape.json b/verify/expected/export-headers.shape.json deleted file mode 100644 index 6e44b74..0000000 --- a/verify/expected/export-headers.shape.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name":"headers","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ]] -} diff --git a/verify/expected/export-headers.web.otlp.json b/verify/expected/export-headers.web.otlp.json deleted file mode 100644 index 09465b2..0000000 --- a/verify/expected/export-headers.web.otlp.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "headers", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000010000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/fast-refresh-idempotent.shape.json b/verify/expected/fast-refresh-idempotent.shape.json deleted file mode 100644 index f043e71..0000000 --- a/verify/expected/fast-refresh-idempotent.shape.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name":"child","kind":1,"parent":"parent","status":0,"links":[],"attributes":{}}, - {"name":"parent","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ]] -} diff --git a/verify/expected/flush-after-reload.ios.otlp.json b/verify/expected/flush-after-reload.ios.otlp.json deleted file mode 100644 index 09877f1..0000000 --- a/verify/expected/flush-after-reload.ios.otlp.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "before_reload", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000009984", - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/flush-after-reload.android.otlp.json b/verify/expected/flush-after-reload.otlp.json similarity index 100% rename from verify/expected/flush-after-reload.android.otlp.json rename to verify/expected/flush-after-reload.otlp.json diff --git a/verify/expected/flush-after-reload.shape.json b/verify/expected/flush-after-reload.shape.json deleted file mode 100644 index be0d0c1..0000000 --- a/verify/expected/flush-after-reload.shape.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name":"before_reload","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ]] -} diff --git a/verify/expected/handoff-basic.ios.otlp.json b/verify/expected/handoff-basic.ios.otlp.json deleted file mode 100644 index a71b84e..0000000 --- a/verify/expected/handoff-basic.ios.otlp.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "root", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000099840", - "attributes": [ - { - "key": "app.step", - "value": { - "stringValue": "one" - } - } - ], - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/handoff-basic.android.otlp.json b/verify/expected/handoff-basic.otlp.json similarity index 100% rename from verify/expected/handoff-basic.android.otlp.json rename to verify/expected/handoff-basic.otlp.json diff --git a/verify/expected/handoff-basic.shape.json b/verify/expected/handoff-basic.shape.json deleted file mode 100644 index 74d98ff..0000000 --- a/verify/expected/handoff-basic.shape.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[{"name": "root", "kind": 1, "parent": null, "status": 0, "links": [], "attributes": {"app.step": "string"}}]] -} diff --git a/verify/expected/handoff-basic.web.otlp.json b/verify/expected/handoff-basic.web.otlp.json deleted file mode 100644 index 6876639..0000000 --- a/verify/expected/handoff-basic.web.otlp.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "root", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000100000", - "attributes": [ - { - "key": "app.step", - "value": { - "stringValue": "one" - } - } - ], - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/interaction-manager.shape.json b/verify/expected/interaction-manager.shape.json deleted file mode 100644 index f4fcf8e..0000000 --- a/verify/expected/interaction-manager.shape.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name":"after_interactions","kind":1,"parent":"parent","status":0,"links":[],"attributes":{}}, - {"name":"parent","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ]] -} diff --git a/verify/expected/interval-new-root.ios.otlp.json b/verify/expected/interval-new-root.ios.otlp.json deleted file mode 100644 index 9da980a..0000000 --- a/verify/expected/interval-new-root.ios.otlp.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "tap", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000400128", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000002", - "name": "tick", - "kind": 1, - "startTimeUnixNano": "1767225600000099840", - "endTimeUnixNano": "1767225600000101120", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000003", - "spanId": "0a00000000000003", - "name": "tick", - "kind": 1, - "startTimeUnixNano": "1767225600000199936", - "endTimeUnixNano": "1767225600000200960", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000001", - "name": "load", - "kind": 1, - "startTimeUnixNano": "1767225600000300032", - "endTimeUnixNano": "1767225600000300800", - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/interval-new-root.js.otlp.json b/verify/expected/interval-new-root.js.otlp.json deleted file mode 100644 index 3923a1e..0000000 --- a/verify/expected/interval-new-root.js.otlp.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "tap", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000400000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000002", - "name": "tick", - "kind": 1, - "startTimeUnixNano": "1767225600000100000", - "endTimeUnixNano": "1767225600000101000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000003", - "spanId": "0a00000000000003", - "name": "tick", - "kind": 1, - "startTimeUnixNano": "1767225600000200000", - "endTimeUnixNano": "1767225600000201000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000001", - "name": "load", - "kind": 1, - "startTimeUnixNano": "1767225600000300000", - "endTimeUnixNano": "1767225600000301000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/interval-new-root.android.otlp.json b/verify/expected/interval-new-root.otlp.json similarity index 100% rename from verify/expected/interval-new-root.android.otlp.json rename to verify/expected/interval-new-root.otlp.json diff --git a/verify/expected/interval-new-root.shape.json b/verify/expected/interval-new-root.shape.json deleted file mode 100644 index ea3d818..0000000 --- a/verify/expected/interval-new-root.shape.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name":"load","kind":1,"parent":"tap","status":0,"links":[],"attributes":{}}, - {"name":"tap","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ], [ - {"name":"tick","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ], [ - {"name":"tick","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ]] -} diff --git a/verify/expected/interval-new-root.web.otlp.json b/verify/expected/interval-new-root.web.otlp.json deleted file mode 100644 index 3923a1e..0000000 --- a/verify/expected/interval-new-root.web.otlp.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "tap", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000400000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000002", - "name": "tick", - "kind": 1, - "startTimeUnixNano": "1767225600000100000", - "endTimeUnixNano": "1767225600000101000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000003", - "spanId": "0a00000000000003", - "name": "tick", - "kind": 1, - "startTimeUnixNano": "1767225600000200000", - "endTimeUnixNano": "1767225600000201000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000001", - "name": "load", - "kind": 1, - "startTimeUnixNano": "1767225600000300000", - "endTimeUnixNano": "1767225600000301000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/native-init-failure.ios.otlp.json b/verify/expected/native-init-failure.ios.otlp.json deleted file mode 100644 index 0efd939..0000000 --- a/verify/expected/native-init-failure.ios.otlp.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "resourceSpans": [] -} diff --git a/verify/expected/native-init-failure.android.otlp.json b/verify/expected/native-init-failure.otlp.json similarity index 100% rename from verify/expected/native-init-failure.android.otlp.json rename to verify/expected/native-init-failure.otlp.json diff --git a/verify/expected/native-init-failure.shape.json b/verify/expected/native-init-failure.shape.json deleted file mode 100644 index 5160adf..0000000 --- a/verify/expected/native-init-failure.shape.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "resource": [], - "scope": [], - "traces": [] -} diff --git a/verify/expected/nest-after-await.ios.otlp.json b/verify/expected/nest-after-await.ios.otlp.json deleted file mode 100644 index dbc627d..0000000 --- a/verify/expected/nest-after-await.ios.otlp.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "parent", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000029952", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "child", - "kind": 1, - "startTimeUnixNano": "1767225600000009984", - "endTimeUnixNano": "1767225600000019968", - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/nest-after-await.js.otlp.json b/verify/expected/nest-after-await.js.otlp.json deleted file mode 100644 index 611ade2..0000000 --- a/verify/expected/nest-after-await.js.otlp.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "parent", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000030000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "child", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000020000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/nest-after-await.android.otlp.json b/verify/expected/nest-after-await.otlp.json similarity index 100% rename from verify/expected/nest-after-await.android.otlp.json rename to verify/expected/nest-after-await.otlp.json diff --git a/verify/expected/nest-after-await.shape.json b/verify/expected/nest-after-await.shape.json deleted file mode 100644 index 448d4c7..0000000 --- a/verify/expected/nest-after-await.shape.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name": "child", "kind": 1, "parent": "parent", "status": 0, "links": [], "attributes": {}}, - {"name": "parent", "kind": 1, "parent": null, "status": 0, "links": [], "attributes": {}} - ]] -} diff --git a/verify/expected/nest-after-await.web.otlp.json b/verify/expected/nest-after-await.web.otlp.json deleted file mode 100644 index 611ade2..0000000 --- a/verify/expected/nest-after-await.web.otlp.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "parent", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000030000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "child", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000020000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/nest-promise-all-race.ios.otlp.json b/verify/expected/nest-promise-all-race.ios.otlp.json deleted file mode 100644 index 788695b..0000000 --- a/verify/expected/nest-promise-all-race.ios.otlp.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "root", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000060160", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "all.a", - "kind": 1, - "startTimeUnixNano": "1767225600000009984", - "endTimeUnixNano": "1767225600000011008", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000003", - "parentSpanId": "0a00000000000001", - "name": "all.b", - "kind": 1, - "startTimeUnixNano": "1767225600000019968", - "endTimeUnixNano": "1767225600000020992", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000001", - "name": "race.a", - "kind": 1, - "startTimeUnixNano": "1767225600000029952", - "endTimeUnixNano": "1767225600000030976", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000005", - "parentSpanId": "0a00000000000001", - "name": "race.b", - "kind": 1, - "startTimeUnixNano": "1767225600000039936", - "endTimeUnixNano": "1767225600000040960", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000006", - "parentSpanId": "0a00000000000001", - "name": "after", - "kind": 1, - "startTimeUnixNano": "1767225600000050176", - "endTimeUnixNano": "1767225600000050944", - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/nest-promise-all-race.js.otlp.json b/verify/expected/nest-promise-all-race.js.otlp.json deleted file mode 100644 index 57ceef3..0000000 --- a/verify/expected/nest-promise-all-race.js.otlp.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "root", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000060000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "all.a", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000003", - "parentSpanId": "0a00000000000001", - "name": "all.b", - "kind": 1, - "startTimeUnixNano": "1767225600000020000", - "endTimeUnixNano": "1767225600000021000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000001", - "name": "race.a", - "kind": 1, - "startTimeUnixNano": "1767225600000030000", - "endTimeUnixNano": "1767225600000031000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000005", - "parentSpanId": "0a00000000000001", - "name": "race.b", - "kind": 1, - "startTimeUnixNano": "1767225600000040000", - "endTimeUnixNano": "1767225600000041000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000006", - "parentSpanId": "0a00000000000001", - "name": "after", - "kind": 1, - "startTimeUnixNano": "1767225600000050000", - "endTimeUnixNano": "1767225600000051000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/nest-promise-all-race.android.otlp.json b/verify/expected/nest-promise-all-race.otlp.json similarity index 100% rename from verify/expected/nest-promise-all-race.android.otlp.json rename to verify/expected/nest-promise-all-race.otlp.json diff --git a/verify/expected/nest-promise-all-race.shape.json b/verify/expected/nest-promise-all-race.shape.json deleted file mode 100644 index 8786fcf..0000000 --- a/verify/expected/nest-promise-all-race.shape.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name":"after","kind":1,"parent":"root","status":0,"links":[],"attributes":{}}, - {"name":"all.a","kind":1,"parent":"root","status":0,"links":[],"attributes":{}}, - {"name":"all.b","kind":1,"parent":"root","status":0,"links":[],"attributes":{}}, - {"name":"race.a","kind":1,"parent":"root","status":0,"links":[],"attributes":{}}, - {"name":"race.b","kind":1,"parent":"root","status":0,"links":[],"attributes":{}}, - {"name":"root","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ]] -} diff --git a/verify/expected/nest-promise-all-race.web.otlp.json b/verify/expected/nest-promise-all-race.web.otlp.json deleted file mode 100644 index 57ceef3..0000000 --- a/verify/expected/nest-promise-all-race.web.otlp.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "root", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000060000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "all.a", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000003", - "parentSpanId": "0a00000000000001", - "name": "all.b", - "kind": 1, - "startTimeUnixNano": "1767225600000020000", - "endTimeUnixNano": "1767225600000021000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000001", - "name": "race.a", - "kind": 1, - "startTimeUnixNano": "1767225600000030000", - "endTimeUnixNano": "1767225600000031000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000005", - "parentSpanId": "0a00000000000001", - "name": "race.b", - "kind": 1, - "startTimeUnixNano": "1767225600000040000", - "endTimeUnixNano": "1767225600000041000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000006", - "parentSpanId": "0a00000000000001", - "name": "after", - "kind": 1, - "startTimeUnixNano": "1767225600000050000", - "endTimeUnixNano": "1767225600000051000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/nest-raf.ios.otlp.json b/verify/expected/nest-raf.ios.otlp.json deleted file mode 100644 index c247a10..0000000 --- a/verify/expected/nest-raf.ios.otlp.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "root", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000019968", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "frame", - "kind": 1, - "startTimeUnixNano": "1767225600000009984", - "endTimeUnixNano": "1767225600000011008", - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/nest-raf.js.otlp.json b/verify/expected/nest-raf.js.otlp.json deleted file mode 100644 index 947dddf..0000000 --- a/verify/expected/nest-raf.js.otlp.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "root", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000020000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "frame", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/nest-raf.android.otlp.json b/verify/expected/nest-raf.otlp.json similarity index 100% rename from verify/expected/nest-raf.android.otlp.json rename to verify/expected/nest-raf.otlp.json diff --git a/verify/expected/nest-raf.shape.json b/verify/expected/nest-raf.shape.json deleted file mode 100644 index b8b38ed..0000000 --- a/verify/expected/nest-raf.shape.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name":"frame","kind":1,"parent":"root","status":0,"links":[],"attributes":{}}, - {"name":"root","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ]] -} diff --git a/verify/expected/nest-raf.web.otlp.json b/verify/expected/nest-raf.web.otlp.json deleted file mode 100644 index 947dddf..0000000 --- a/verify/expected/nest-raf.web.otlp.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "root", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000020000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "frame", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/nest-timers-microtasks.ios.otlp.json b/verify/expected/nest-timers-microtasks.ios.otlp.json deleted file mode 100644 index ca0a0b3..0000000 --- a/verify/expected/nest-timers-microtasks.ios.otlp.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "root", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000050176", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "timeout", - "kind": 1, - "startTimeUnixNano": "1767225600000009984", - "endTimeUnixNano": "1767225600000011008", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000003", - "parentSpanId": "0a00000000000001", - "name": "immediate", - "kind": 1, - "startTimeUnixNano": "1767225600000019968", - "endTimeUnixNano": "1767225600000020992", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000001", - "name": "microtask", - "kind": 1, - "startTimeUnixNano": "1767225600000029952", - "endTimeUnixNano": "1767225600000030976", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000005", - "parentSpanId": "0a00000000000001", - "name": "timeout.microtask", - "kind": 1, - "startTimeUnixNano": "1767225600000039936", - "endTimeUnixNano": "1767225600000040960", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000006", - "parentSpanId": "0a00000000000001", - "name": "after.end", - "kind": 1, - "startTimeUnixNano": "1767225600000060160", - "endTimeUnixNano": "1767225600000060928", - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/nest-timers-microtasks.js.otlp.json b/verify/expected/nest-timers-microtasks.js.otlp.json deleted file mode 100644 index c730379..0000000 --- a/verify/expected/nest-timers-microtasks.js.otlp.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "root", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000050000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "timeout", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000003", - "parentSpanId": "0a00000000000001", - "name": "immediate", - "kind": 1, - "startTimeUnixNano": "1767225600000020000", - "endTimeUnixNano": "1767225600000021000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000001", - "name": "microtask", - "kind": 1, - "startTimeUnixNano": "1767225600000030000", - "endTimeUnixNano": "1767225600000031000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000005", - "parentSpanId": "0a00000000000001", - "name": "timeout.microtask", - "kind": 1, - "startTimeUnixNano": "1767225600000040000", - "endTimeUnixNano": "1767225600000041000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000006", - "parentSpanId": "0a00000000000001", - "name": "after.end", - "kind": 1, - "startTimeUnixNano": "1767225600000060000", - "endTimeUnixNano": "1767225600000061000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/nest-timers-microtasks.android.otlp.json b/verify/expected/nest-timers-microtasks.otlp.json similarity index 100% rename from verify/expected/nest-timers-microtasks.android.otlp.json rename to verify/expected/nest-timers-microtasks.otlp.json diff --git a/verify/expected/nest-timers-microtasks.shape.json b/verify/expected/nest-timers-microtasks.shape.json deleted file mode 100644 index aeb85a4..0000000 --- a/verify/expected/nest-timers-microtasks.shape.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name":"after.end","kind":1,"parent":"root","status":0,"links":[],"attributes":{}}, - {"name":"immediate","kind":1,"parent":"root","status":0,"links":[],"attributes":{}}, - {"name":"microtask","kind":1,"parent":"root","status":0,"links":[],"attributes":{}}, - {"name":"root","kind":1,"parent":null,"status":0,"links":[],"attributes":{}}, - {"name":"timeout","kind":1,"parent":"root","status":0,"links":[],"attributes":{}}, - {"name":"timeout.microtask","kind":1,"parent":"root","status":0,"links":[],"attributes":{}} - ]] -} diff --git a/verify/expected/nest-timers-microtasks.web.otlp.json b/verify/expected/nest-timers-microtasks.web.otlp.json deleted file mode 100644 index c730379..0000000 --- a/verify/expected/nest-timers-microtasks.web.otlp.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "root", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000050000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "timeout", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000003", - "parentSpanId": "0a00000000000001", - "name": "immediate", - "kind": 1, - "startTimeUnixNano": "1767225600000020000", - "endTimeUnixNano": "1767225600000021000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000004", - "parentSpanId": "0a00000000000001", - "name": "microtask", - "kind": 1, - "startTimeUnixNano": "1767225600000030000", - "endTimeUnixNano": "1767225600000031000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000005", - "parentSpanId": "0a00000000000001", - "name": "timeout.microtask", - "kind": 1, - "startTimeUnixNano": "1767225600000040000", - "endTimeUnixNano": "1767225600000041000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000006", - "parentSpanId": "0a00000000000001", - "name": "after.end", - "kind": 1, - "startTimeUnixNano": "1767225600000060000", - "endTimeUnixNano": "1767225600000061000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/never-settling-promise.ios.otlp.json b/verify/expected/never-settling-promise.ios.otlp.json deleted file mode 100644 index 7fa1586..0000000 --- a/verify/expected/never-settling-promise.ios.otlp.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "parent", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000019968", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "child", - "kind": 1, - "startTimeUnixNano": "1767225600000009984", - "endTimeUnixNano": "1767225600000011008", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000003", - "name": "later.await", - "kind": 1, - "startTimeUnixNano": "1767225600000029952", - "endTimeUnixNano": "1767225600000030976", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000003", - "spanId": "0a00000000000004", - "name": "later.timeout", - "kind": 1, - "startTimeUnixNano": "1767225600000039936", - "endTimeUnixNano": "1767225600000040960", - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/never-settling-promise.js.otlp.json b/verify/expected/never-settling-promise.js.otlp.json deleted file mode 100644 index a71e213..0000000 --- a/verify/expected/never-settling-promise.js.otlp.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "parent", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000020000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "child", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000003", - "name": "later.await", - "kind": 1, - "startTimeUnixNano": "1767225600000030000", - "endTimeUnixNano": "1767225600000031000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000003", - "spanId": "0a00000000000004", - "name": "later.timeout", - "kind": 1, - "startTimeUnixNano": "1767225600000040000", - "endTimeUnixNano": "1767225600000041000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/never-settling-promise.android.otlp.json b/verify/expected/never-settling-promise.otlp.json similarity index 100% rename from verify/expected/never-settling-promise.android.otlp.json rename to verify/expected/never-settling-promise.otlp.json diff --git a/verify/expected/never-settling-promise.shape.json b/verify/expected/never-settling-promise.shape.json deleted file mode 100644 index 11b2037..0000000 --- a/verify/expected/never-settling-promise.shape.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name":"child","kind":1,"parent":"parent","status":0,"links":[],"attributes":{}}, - {"name":"parent","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ], [ - {"name":"later.await","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ], [ - {"name":"later.timeout","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ]] -} diff --git a/verify/expected/never-settling-promise.web.otlp.json b/verify/expected/never-settling-promise.web.otlp.json deleted file mode 100644 index a71e213..0000000 --- a/verify/expected/never-settling-promise.web.otlp.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "parent", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000020000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "child", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000003", - "name": "later.await", - "kind": 1, - "startTimeUnixNano": "1767225600000030000", - "endTimeUnixNano": "1767225600000031000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000003", - "spanId": "0a00000000000004", - "name": "later.timeout", - "kind": 1, - "startTimeUnixNano": "1767225600000040000", - "endTimeUnixNano": "1767225600000041000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/odd-attributes.ios.otlp.json b/verify/expected/odd-attributes.ios.otlp.json deleted file mode 100644 index 5110ca6..0000000 --- a/verify/expected/odd-attributes.ios.otlp.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "odd", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000009984", - "attributes": [ - { - "key": "big", - "value": { - "intValue": "9007199254740994" - } - }, - { - "key": "empty", - "value": { - "arrayValue": {} - } - }, - { - "key": "inf", - "value": { - "doubleValue": "Infinity" - } - }, - { - "key": "nan", - "value": { - "doubleValue": "NaN" - } - }, - { - "key": "negZero", - "value": { - "intValue": "0" - } - } - ], - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/odd-attributes.android.otlp.json b/verify/expected/odd-attributes.otlp.json similarity index 100% rename from verify/expected/odd-attributes.android.otlp.json rename to verify/expected/odd-attributes.otlp.json diff --git a/verify/expected/odd-attributes.shape.json b/verify/expected/odd-attributes.shape.json deleted file mode 100644 index 706c46d..0000000 --- a/verify/expected/odd-attributes.shape.json +++ /dev/null @@ -1 +0,0 @@ -{"resource":["service.name"],"scope":[],"traces":[[{"name":"odd","kind":1,"parent":null,"status":0,"links":[],"attributes":{"big":"int","empty":"array","inf":"double","nan":"double","negZero":"int"}}]]} diff --git a/verify/expected/odd-attributes.web.otlp.json b/verify/expected/odd-attributes.web.otlp.json deleted file mode 100644 index b82c28d..0000000 --- a/verify/expected/odd-attributes.web.otlp.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "odd", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000010000", - "attributes": [ - { - "key": "big", - "value": { - "intValue": "9007199254740994" - } - }, - { - "key": "empty", - "value": { - "arrayValue": {} - } - }, - { - "key": "inf", - "value": { - "doubleValue": "Infinity" - } - }, - { - "key": "nan", - "value": { - "doubleValue": "NaN" - } - }, - { - "key": "negZero", - "value": { - "intValue": "0" - } - } - ], - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/rich-span.ios.otlp.json b/verify/expected/rich-span.ios.otlp.json deleted file mode 100644 index 61ff887..0000000 --- a/verify/expected/rich-span.ios.otlp.json +++ /dev/null @@ -1,187 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify.rich", - "version": "1.2.3", - "attributes": [ - { - "key": "scope.key", - "value": { - "stringValue": "scope-value" - } - } - ] - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "rich", - "kind": 3, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000099840", - "attributes": [ - { - "key": "bool", - "value": { - "boolValue": true - } - }, - { - "key": "bools", - "value": { - "arrayValue": { - "values": [ - { - "boolValue": true - }, - { - "boolValue": false - } - ] - } - } - }, - { - "key": "double", - "value": { - "doubleValue": 1.5 - } - }, - { - "key": "doubles", - "value": { - "arrayValue": { - "values": [ - { - "doubleValue": 1.5 - }, - { - "doubleValue": 2.5 - } - ] - } - } - }, - { - "key": "int", - "value": { - "intValue": "42" - } - }, - { - "key": "ints", - "value": { - "arrayValue": { - "values": [ - { - "intValue": "1" - }, - { - "intValue": "2" - }, - { - "intValue": "3" - } - ] - } - } - }, - { - "key": "str", - "value": { - "stringValue": "zażółć 🚀" - } - }, - { - "key": "strs", - "value": { - "arrayValue": { - "values": [ - { - "stringValue": "a" - }, - { - "stringValue": "b" - } - ] - } - } - } - ], - "events": [ - { - "timeUnixNano": "1767225600000009984", - "name": "first", - "attributes": [ - { - "key": "event.key", - "value": { - "stringValue": "e1" - } - }, - { - "key": "event.n", - "value": { - "intValue": "1" - } - } - ] - }, - { - "timeUnixNano": "1767225600000019968", - "name": "second", - "attributes": [ - { - "key": "event.ok", - "value": { - "boolValue": true - } - } - ] - } - ], - "links": [ - { - "traceId": "0f111111111111111111111111111111", - "spanId": "0f22222222222222", - "attributes": [ - { - "key": "link.key", - "value": { - "stringValue": "link-value" - } - }, - { - "key": "link.n", - "value": { - "intValue": "7" - } - } - ] - } - ], - "status": { - "message": "boom", - "code": 2 - } - } - ] - } - ] - } - ] -} diff --git a/verify/expected/rich-span.js.otlp.json b/verify/expected/rich-span.js.otlp.json deleted file mode 100644 index 7f3f8c4..0000000 --- a/verify/expected/rich-span.js.otlp.json +++ /dev/null @@ -1,191 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify.rich", - "version": "1.2.3", - "attributes": [ - { - "key": "scope.key", - "value": { - "stringValue": "scope-value" - } - } - ] - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "rich", - "kind": 3, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000100000", - "attributes": [ - { - "key": "bool", - "value": { - "boolValue": true - } - }, - { - "key": "bools", - "value": { - "arrayValue": { - "values": [ - { - "boolValue": true - }, - { - "boolValue": false - } - ] - } - } - }, - { - "key": "double", - "value": { - "doubleValue": 1.5 - } - }, - { - "key": "doubles", - "value": { - "arrayValue": { - "values": [ - { - "doubleValue": 1.5 - }, - { - "doubleValue": 2.5 - } - ] - } - } - }, - { - "key": "int", - "value": { - "intValue": "42" - } - }, - { - "key": "ints", - "value": { - "arrayValue": { - "values": [ - { - "intValue": "1" - }, - { - "intValue": "2" - }, - { - "intValue": "3" - } - ] - } - } - }, - { - "key": "str", - "value": { - "stringValue": "zażółć 🚀" - } - }, - { - "key": "strs", - "value": { - "arrayValue": { - "values": [ - { - "stringValue": "a" - }, - { - "stringValue": "b" - } - ] - } - } - } - ], - "events": [ - { - "timeUnixNano": "1767225600000010000", - "name": "first", - "attributes": [ - { - "key": "event.key", - "value": { - "stringValue": "e1" - } - }, - { - "key": "event.n", - "value": { - "intValue": "1" - } - } - ] - }, - { - "timeUnixNano": "1767225600000020000", - "name": "second", - "attributes": [ - { - "key": "event.ok", - "value": { - "boolValue": true - } - } - ] - } - ], - "links": [ - { - "traceId": "0f111111111111111111111111111111", - "spanId": "0f22222222222222", - "traceState": "k=v", - "attributes": [ - { - "key": "link.key", - "value": { - "stringValue": "link-value" - } - }, - { - "key": "link.n", - "value": { - "intValue": "7" - } - } - ], - "flags": 257 - } - ], - "status": { - "message": "boom", - "code": 2 - }, - "flags": 257 - } - ], - "schemaUrl": "https://opentelemetry.io/schemas/1.40.0" - } - ] - } - ] -} diff --git a/verify/expected/rich-span.android.otlp.json b/verify/expected/rich-span.otlp.json similarity index 100% rename from verify/expected/rich-span.android.otlp.json rename to verify/expected/rich-span.otlp.json diff --git a/verify/expected/rich-span.shape.json b/verify/expected/rich-span.shape.json deleted file mode 100644 index ff3dd11..0000000 --- a/verify/expected/rich-span.shape.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "resource": ["service.name"], - "scope": ["scope.key"], - "traces": [[{"name": "rich", "kind": 3, "parent": null, "status": 2, "links": ["(external)"], "attributes": {"str": "string", "int": "int", "double": "double", "bool": "bool", "strs": "array", "ints": "array", "doubles": "array", "bools": "array"}}]] -} diff --git a/verify/expected/rich-span.web.otlp.json b/verify/expected/rich-span.web.otlp.json deleted file mode 100644 index 7f3f8c4..0000000 --- a/verify/expected/rich-span.web.otlp.json +++ /dev/null @@ -1,191 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify.rich", - "version": "1.2.3", - "attributes": [ - { - "key": "scope.key", - "value": { - "stringValue": "scope-value" - } - } - ] - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "rich", - "kind": 3, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000100000", - "attributes": [ - { - "key": "bool", - "value": { - "boolValue": true - } - }, - { - "key": "bools", - "value": { - "arrayValue": { - "values": [ - { - "boolValue": true - }, - { - "boolValue": false - } - ] - } - } - }, - { - "key": "double", - "value": { - "doubleValue": 1.5 - } - }, - { - "key": "doubles", - "value": { - "arrayValue": { - "values": [ - { - "doubleValue": 1.5 - }, - { - "doubleValue": 2.5 - } - ] - } - } - }, - { - "key": "int", - "value": { - "intValue": "42" - } - }, - { - "key": "ints", - "value": { - "arrayValue": { - "values": [ - { - "intValue": "1" - }, - { - "intValue": "2" - }, - { - "intValue": "3" - } - ] - } - } - }, - { - "key": "str", - "value": { - "stringValue": "zażółć 🚀" - } - }, - { - "key": "strs", - "value": { - "arrayValue": { - "values": [ - { - "stringValue": "a" - }, - { - "stringValue": "b" - } - ] - } - } - } - ], - "events": [ - { - "timeUnixNano": "1767225600000010000", - "name": "first", - "attributes": [ - { - "key": "event.key", - "value": { - "stringValue": "e1" - } - }, - { - "key": "event.n", - "value": { - "intValue": "1" - } - } - ] - }, - { - "timeUnixNano": "1767225600000020000", - "name": "second", - "attributes": [ - { - "key": "event.ok", - "value": { - "boolValue": true - } - } - ] - } - ], - "links": [ - { - "traceId": "0f111111111111111111111111111111", - "spanId": "0f22222222222222", - "traceState": "k=v", - "attributes": [ - { - "key": "link.key", - "value": { - "stringValue": "link-value" - } - }, - { - "key": "link.n", - "value": { - "intValue": "7" - } - } - ], - "flags": 257 - } - ], - "status": { - "message": "boom", - "code": 2 - }, - "flags": 257 - } - ], - "schemaUrl": "https://opentelemetry.io/schemas/1.40.0" - } - ] - } - ] -} diff --git a/verify/expected/root-no-leak.ios.otlp.json b/verify/expected/root-no-leak.ios.otlp.json deleted file mode 100644 index 2e0b2be..0000000 --- a/verify/expected/root-no-leak.ios.otlp.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "scoped", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000019968", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "scoped.child", - "kind": 1, - "startTimeUnixNano": "1767225600000009984", - "endTimeUnixNano": "1767225600000011008", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000003", - "name": "after.sync", - "kind": 1, - "startTimeUnixNano": "1767225600000029952", - "endTimeUnixNano": "1767225600000030976", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000003", - "spanId": "0a00000000000004", - "name": "after.await", - "kind": 1, - "startTimeUnixNano": "1767225600000039936", - "endTimeUnixNano": "1767225600000040960", - "status": {} - }, - { - "traceId": "0a000000000000000000000000000004", - "spanId": "0a00000000000005", - "name": "after.timeout", - "kind": 1, - "startTimeUnixNano": "1767225600000050176", - "endTimeUnixNano": "1767225600000050944", - "status": {} - } - ] - } - ] - } - ] -} diff --git a/verify/expected/root-no-leak.js.otlp.json b/verify/expected/root-no-leak.js.otlp.json deleted file mode 100644 index b72d020..0000000 --- a/verify/expected/root-no-leak.js.otlp.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "scoped", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000020000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "scoped.child", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000003", - "name": "after.sync", - "kind": 1, - "startTimeUnixNano": "1767225600000030000", - "endTimeUnixNano": "1767225600000031000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000003", - "spanId": "0a00000000000004", - "name": "after.await", - "kind": 1, - "startTimeUnixNano": "1767225600000040000", - "endTimeUnixNano": "1767225600000041000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000004", - "spanId": "0a00000000000005", - "name": "after.timeout", - "kind": 1, - "startTimeUnixNano": "1767225600000050000", - "endTimeUnixNano": "1767225600000051000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/expected/root-no-leak.android.otlp.json b/verify/expected/root-no-leak.otlp.json similarity index 100% rename from verify/expected/root-no-leak.android.otlp.json rename to verify/expected/root-no-leak.otlp.json diff --git a/verify/expected/root-no-leak.shape.json b/verify/expected/root-no-leak.shape.json deleted file mode 100644 index 1e56307..0000000 --- a/verify/expected/root-no-leak.shape.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "resource": ["service.name"], - "scope": [], - "traces": [[ - {"name":"scoped","kind":1,"parent":null,"status":0,"links":[],"attributes":{}}, - {"name":"scoped.child","kind":1,"parent":"scoped","status":0,"links":[],"attributes":{}} - ], [ - {"name":"after.sync","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ], [ - {"name":"after.await","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ], [ - {"name":"after.timeout","kind":1,"parent":null,"status":0,"links":[],"attributes":{}} - ]] -} diff --git a/verify/expected/root-no-leak.web.otlp.json b/verify/expected/root-no-leak.web.otlp.json deleted file mode 100644 index b72d020..0000000 --- a/verify/expected/root-no-leak.web.otlp.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "resourceSpans": [ - { - "resource": { - "attributes": [ - { - "key": "service.name", - "value": { - "stringValue": "verify" - } - } - ] - }, - "scopeSpans": [ - { - "scope": { - "name": "verify" - }, - "spans": [ - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000001", - "name": "scoped", - "kind": 1, - "startTimeUnixNano": "1767225600000000000", - "endTimeUnixNano": "1767225600000020000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000001", - "spanId": "0a00000000000002", - "parentSpanId": "0a00000000000001", - "name": "scoped.child", - "kind": 1, - "startTimeUnixNano": "1767225600000010000", - "endTimeUnixNano": "1767225600000011000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000002", - "spanId": "0a00000000000003", - "name": "after.sync", - "kind": 1, - "startTimeUnixNano": "1767225600000030000", - "endTimeUnixNano": "1767225600000031000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000003", - "spanId": "0a00000000000004", - "name": "after.await", - "kind": 1, - "startTimeUnixNano": "1767225600000040000", - "endTimeUnixNano": "1767225600000041000", - "status": {}, - "flags": 257 - }, - { - "traceId": "0a000000000000000000000000000004", - "spanId": "0a00000000000005", - "name": "after.timeout", - "kind": 1, - "startTimeUnixNano": "1767225600000050000", - "endTimeUnixNano": "1767225600000051000", - "status": {}, - "flags": 257 - } - ] - } - ] - } - ] -} diff --git a/verify/harness/__tests__/compare.test.ts b/verify/harness/__tests__/compare.test.ts index 6fb248f..58fb67b 100644 --- a/verify/harness/__tests__/compare.test.ts +++ b/verify/harness/__tests__/compare.test.ts @@ -1,8 +1,7 @@ import fs from 'fs'; import os from 'os'; import path from 'path'; -import {compareToExpected, diffOtlp, formatReport, pending, pendingScenarios} from '../compare'; -import {shapeOf} from '../shape'; +import {compareToExpected, diffOtlp, formatReport} from '../compare'; const otlp = (span: any = {}) => ({ resourceSpans: [ @@ -31,7 +30,7 @@ test("formatReport matches the spec's failure text", () => { [ '✗ nest-after-await [android] span 0a02 "child"', ' parentSpanId expected "0a01" got (none)', - ' expected: verify/expected/nest-after-await.android.otlp.json', + ' expected: verify/expected/nest-after-await.otlp.json', ' actual: verify/artifacts/nest-after-await.android.otlp.json', ' scenario: verify/scenarios/nest-after-await.ts', ].join('\n'), @@ -52,17 +51,13 @@ describe('compareToExpected', () => { v === undefined ? delete process.env[k] : (process.env[k] = v); fs.rmSync(dir, {recursive: true, force: true}); }); - const writeShape = (o: any) => - fs.writeFileSync(path.join(dir, 'expected/sc.shape.json'), JSON.stringify(shapeOf(o))); - test('update mode writes the file and passes', () => { const o = otlp(); - writeShape(o); process.env.VERIFY_UPDATE = '1'; const r = compareToExpected('sc', 'js', o); expect(r.ok).toBe(true); - expect(r.report).toMatch(/^updated .*sc\.js\.otlp\.json$/); - const f = path.join(dir, 'expected/sc.js.otlp.json'); + expect(r.report).toMatch(/^updated .*sc\.otlp\.json$/); + const f = path.join(dir, 'expected/sc.otlp.json'); expect(JSON.parse(fs.readFileSync(f, 'utf8'))).toEqual(o); process.env.VERIFY_UPDATE = ''; expect(compareToExpected('sc', 'js', o).ok).toBe(true); @@ -70,16 +65,14 @@ describe('compareToExpected', () => { test('exact mismatch fails and names the field', () => { const o = otlp({status: {code: 1}}); - writeShape(o); - fs.writeFileSync(path.join(dir, 'expected/sc.js.otlp.json'), JSON.stringify(otlp({status: {code: 2}}))); + fs.writeFileSync(path.join(dir, 'expected/sc.otlp.json'), JSON.stringify(otlp({status: {code: 2}}))); const r = compareToExpected('sc', 'js', o); expect(r.ok).toBe(false); expect(r.report).toContain('status.code expected 2 got 1'); - expect(r.report).toContain('expected: verify/expected/sc.js.otlp.json'); + expect(r.report).toContain('expected: verify/expected/sc.otlp.json'); }); test('missing expected file fails with a clear report', () => { - writeShape(otlp()); const r = compareToExpected('sc', 'js', otlp()); expect(r.ok).toBe(false); expect(r.report).toContain('file expected'); @@ -88,10 +81,9 @@ describe('compareToExpected', () => { test('draft writes a missing file but still fails, and never overwrites', () => { const o = otlp(); - writeShape(o); - const f = path.join(dir, 'expected/sc.js.otlp.json'); + const f = path.join(dir, 'expected/sc.otlp.json'); const r = compareToExpected('sc', 'js', o, {draft: true}); - expect(r).toEqual({ok: false, report: 'drafted verify/expected/sc.js.otlp.json, review it'}); + expect(r).toEqual({ok: false, report: 'drafted verify/expected/sc.otlp.json, review it'}); expect(JSON.parse(fs.readFileSync(f, 'utf8'))).toEqual(o); expect(compareToExpected('sc', 'js', o, {draft: true}).ok).toBe(true); const r2 = compareToExpected('sc', 'js', otlp({status: {code: 1}}), {draft: true}); @@ -99,43 +91,40 @@ describe('compareToExpected', () => { expect(JSON.parse(fs.readFileSync(f, 'utf8'))).toEqual(o); }); - test('shape mismatch report points at the shape file', () => { - writeShape(otlp()); - const r = compareToExpected('sc', 'js', otlp({name: 'other'})); - expect(r.report).toContain('expected: verify/expected/sc.shape.json'); - }); - - test('update mode refuses when the shape differs', () => { - writeShape(otlp()); + test('iOS never writes the shared file', () => { process.env.VERIFY_UPDATE = '1'; - const r = compareToExpected('sc', 'js', otlp({name: 'other'})); - expect(r.ok).toBe(false); - expect(fs.existsSync(path.join(dir, 'expected/sc.js.otlp.json'))).toBe(false); + expect(compareToExpected('sc', 'ios', otlp()).ok).toBe(false); + delete process.env.VERIFY_UPDATE; + expect(compareToExpected('sc', 'ios', otlp(), {draft: true}).ok).toBe(false); + expect(fs.existsSync(path.join(dir, 'expected/sc.otlp.json'))).toBe(false); }); }); -test('pending records the scenario', () => { - pending('x'); - expect(pendingScenarios.has('x')).toBe(true); -}); +describe('iOS known gaps', () => { + const full = otlp({ + startTimeUnixNano: '1767225600000100000', + flags: 257, + traceState: 'k=v', + links: [{traceId: '0f01', spanId: '0f02', flags: 257, traceState: 'k=v'}], + events: [{name: 'e', timeUnixNano: '1767225600000010000'}], + }); + (full.resourceSpans[0]!.scopeSpans[0] as any).schemaUrl = 'https://opentelemetry.io/schemas/1.40.0'; + const ios = otlp({ + startTimeUnixNano: '1767225600000099840', + links: [{traceId: '0f01', spanId: '0f02'}], + events: [{name: 'e', timeUnixNano: '1767225600000010160'}], + }); -test('spans are matched by spanId when reordered', () => { - const two = (a: any, b: any) => { - const o = otlp(a); - o.resourceSpans[0]!.scopeSpans[0]!.spans.push({traceId: '0a01', kind: 1, ...b}); - return o; - }; - const x = two({spanId: '0a02', name: 'a'}, {spanId: '0a03', name: 'b'}); - const y = two({spanId: '0a03', name: 'b'}, {spanId: '0a02', name: 'a'}); - expect(diffOtlp(x, y)).toEqual([]); -}); + test('times within 256 ns and the five unwritten fields pass on iOS only', () => { + expect(diffOtlp(full, ios, 'ios')).toEqual([]); + expect(diffOtlp(full, ios, 'android').map(d => d.path).sort()).toEqual( + ['events[0].timeUnixNano', 'flags', 'links[0].flags', 'links[0].traceState', 'scopeSchemaUrl', 'startTimeUnixNano', 'traceState'], + ); + }); -test('status and event diffs are reported', () => { - const d = diffOtlp( - otlp({status: {code: 2}, events: [{name: 'e', timeUnixNano: '1'}]}), - otlp({events: []}), - ); - const paths = d.map(x => x.path); - expect(paths).toContain('status'); - expect(paths).toContain('events[0]'); + test('anything else, or a time off by more than 256 ns, still fails on iOS', () => { + const off = otlp({startTimeUnixNano: '1767225600000099743', links: [{traceId: '0f01', spanId: '0f02'}], + events: [{name: 'e', timeUnixNano: '1767225600000010000'}], name: 'other'}); + expect(diffOtlp(full, off, 'ios').map(d => d.path).sort()).toEqual(['name', 'startTimeUnixNano']); + }); }); diff --git a/verify/harness/__tests__/shape.test.ts b/verify/harness/__tests__/shape.test.ts deleted file mode 100644 index a0a54e1..0000000 --- a/verify/harness/__tests__/shape.test.ts +++ /dev/null @@ -1,62 +0,0 @@ -import {shapeOf} from '../shape'; - -const span = (o: any) => ({ - traceId: '0a01', - spanId: '0a02', - name: 'x', - kind: 1, - startTimeUnixNano: '1', - endTimeUnixNano: '2', - ...o, -}); -const mk = (spans: any[]) => ({ - resourceSpans: [ - { - resource: {attributes: [{key: 'service.name', value: {stringValue: 's'}}]}, - scopeSpans: [ - {scope: {name: 'sc', attributes: [{key: 'z', value: {boolValue: true}}]}, spans}, - ], - }, - ], -}); - -test('shapeOf ignores ids and timestamps', () => { - const a = mk([ - span({spanId: '0a01', name: 'root', startTimeUnixNano: '5', attributes: [{key: 'k', value: {intValue: '1'}}]}), - span({spanId: '0a02', parentSpanId: '0a01', name: 'child', startTimeUnixNano: '6', attributes: [{key: 'arr', value: {arrayValue: {values: [{stringValue: 'a'}]}}}]}), - ]); - const b = mk([ - span({traceId: 'ff', spanId: 'bb02', parentSpanId: 'bb01', name: 'child', startTimeUnixNano: '99', attributes: [{key: 'arr', value: {arrayValue: {values: [{stringValue: 'q'}]}}}]}), - span({traceId: 'ff', spanId: 'bb01', name: 'root', startTimeUnixNano: '90', attributes: [{key: 'k', value: {intValue: '7'}}]}), - ]); - expect(shapeOf(a)).toEqual(shapeOf(b)); - expect(shapeOf(a)).toEqual({ - resource: ['service.name'], - scope: ['z'], - traces: [ - [ - {name: 'child', kind: 1, parent: 'root', status: 0, links: [], attributes: {arr: 'array'}}, - {name: 'root', kind: 1, parent: null, status: 0, links: [], attributes: {k: 'int'}}, - ], - ], - }); -}); - -test('unresolved parent and link targets become (external)', () => { - const o = mk([span({name: 'a', parentSpanId: 'ee01', links: [{spanId: 'ee02'}]})]); - const [t] = shapeOf(o).traces; - expect(t![0]).toMatchObject({parent: '(external)', links: ['(external)']}); -}); - -test('duplicate span names resolve parent and links by spanId', () => { - const o = mk([ - span({spanId: '0a01', name: 'dup', startTimeUnixNano: '1'}), - span({spanId: '0a02', name: 'dup', startTimeUnixNano: '2', parentSpanId: '0a01'}), - span({spanId: '0a03', name: 'z', startTimeUnixNano: '3', parentSpanId: '0a02', links: [{spanId: '0a01'}]}), - ]); - const z = shapeOf(o).traces[0]!.find(s => s.name === 'z')!; - expect(z.parent).toBe('dup'); - expect(z.links).toEqual(['dup']); - const dups = shapeOf(o).traces[0]!.filter(s => s.name === 'dup'); - expect(dups.map(d => d.parent)).toEqual([null, 'dup']); -}); diff --git a/verify/harness/compare.ts b/verify/harness/compare.ts index 79d15a8..f531514 100644 --- a/verify/harness/compare.ts +++ b/verify/harness/compare.ts @@ -1,25 +1,20 @@ import fs from 'fs'; import path from 'path'; -import {compareShape} from './shape'; import type {OtlpJson} from './otlpJson'; export type Platform = 'js' | 'android' | 'ios' | 'web'; export type Diff = {spanId?: string; spanName?: string; path: string; expected: unknown; actual: unknown}; -/** Scenarios not implemented yet; runners turn these into test.todo. */ export const pendingScenarios = new Set(); export const pending = (scenario: string) => void pendingScenarios.add(scenario); -// VERIFY_DIR overrides the verify/ root (tests use temp dirs) const root = () => process.env.VERIFY_DIR ?? path.join(__dirname, '..'); const rel = (sub: string, scenario: string, suffix: string) => `verify/${sub}/${scenario}.${suffix}`; const abs = (sub: string, scenario: string, suffix: string) => path.join(root(), sub, `${scenario}.${suffix}`); -export const expectedPath = (scenario: string, platform: Platform | 'shape'): string => - abs('expected', scenario, platform === 'shape' ? 'shape.json' : `${platform}.otlp.json`); +export const expectedPath = (scenario: string): string => abs('expected', scenario, 'otlp.json'); const isObj = (v: unknown): v is Record => !!v && typeof v === 'object' && !Array.isArray(v); -// arrays of {key,...} (attributes) diff by key, not by index const byKey = (v: unknown) => Array.isArray(v) && v.length && v.every(x => isObj(x) && typeof x.key === 'string') ? Object.fromEntries(v.map(x => [x.key, x])) @@ -39,7 +34,6 @@ export function diffValues(e: unknown, a: unknown, p = ''): Diff[] { return JSON.stringify(e) === JSON.stringify(a) ? [] : [{path: p, expected: e, actual: a}]; } -// one record per span, with its resource and scope attached function spansOf(o: OtlpJson): Map { const m = new Map(); for (const rs of o.resourceSpans ?? []) @@ -55,17 +49,41 @@ function spansOf(o: OtlpJson): Map { return m; } -export function diffOtlp(expected: OtlpJson, actual: OtlpJson): Diff[] { +const IOS_TIME_STEP_NS = 256n; +const TIME_KEYS = ['startTimeUnixNano', 'endTimeUnixNano'] as const; +const snapTime = (e: any, a: any, k: string) => { + if (typeof e?.[k] !== 'string' || typeof a?.[k] !== 'string') return; + const d = BigInt(e[k]) - BigInt(a[k]); + if (d >= -IOS_TIME_STEP_NS && d <= IOS_TIME_STEP_NS) a[k] = e[k]; +}; + +function iosView(e: any, a: any): [any, any] { + e = structuredClone(e); + a = structuredClone(a); + delete e.flags; + delete e.traceState; + delete e.scopeSchemaUrl; + for (const l of e.links ?? []) { + delete l.flags; + delete l.traceState; + } + for (const k of TIME_KEYS) snapTime(e, a, k); + (e.events ?? []).forEach((ev: any, i: number) => snapTime(ev, a.events?.[i], 'timeUnixNano')); + return [e, a]; +} + +export function diffOtlp(expected: OtlpJson, actual: OtlpJson, platform?: Platform): Diff[] { const e = spansOf(expected); const a = spansOf(actual); const out: Diff[] = []; for (const id of new Set([...e.keys(), ...a.keys()])) { - const [x, y] = [e.get(id), a.get(id)]; + let [x, y] = [e.get(id), a.get(id)]; const spanName = (x ?? y).name; if (!x || !y) { out.push({spanId: id, spanName, path: 'span', expected: x ? 'present' : undefined, actual: y ? 'present' : undefined}); continue; } + if (platform === 'ios') [x, y] = iosView(x, y); for (const d of diffValues(x, y)) out.push({spanId: id, spanName, ...d}); } return out; @@ -73,7 +91,7 @@ export function diffOtlp(expected: OtlpJson, actual: OtlpJson): Diff[] { const show = (v: unknown) => (v === undefined ? '(none)' : JSON.stringify(v)); -export function formatReport(scenario: string, platform: Platform, diffs: Diff[], expectedFile = rel('expected', scenario, `${platform}.otlp.json`)): string { +export function formatReport(scenario: string, platform: Platform, diffs: Diff[], expectedFile = rel('expected', scenario, 'otlp.json')): string { const lines: string[] = []; let last: string | undefined | null = null; for (const d of diffs) { @@ -96,32 +114,27 @@ const write = (f: string, o: unknown) => { fs.writeFileSync(f, JSON.stringify(o, null, 2) + '\n'); }; -/** - * `draft` (e2e only, `VERIFY_E2E_DRAFT=1`): a missing expected file is written from `actual` and the compare still - * fails, so a draft never passes unreviewed. An existing file is never overwritten. - */ export function compareToExpected( scenario: string, platform: Platform, actual: OtlpJson, {draft = false}: {draft?: boolean} = {}, ): {ok: boolean; report: string} { - const fail = (diffs: Diff[], expectedFile?: string) => { + const f = expectedPath(scenario); + const fail = (diffs: Diff[]) => { write(abs('artifacts', scenario, `${platform}.otlp.json`), actual); - return {ok: false, report: formatReport(scenario, platform, diffs, expectedFile)}; + return {ok: false, report: formatReport(scenario, platform, diffs)}; }; - const shape = compareShape(scenario, actual); - if (shape.length) return fail(shape, rel('expected', scenario, 'shape.json')); - const f = expectedPath(scenario, platform); - if (process.env.VERIFY_UPDATE === '1') { + const writes = platform !== 'ios'; + if (process.env.VERIFY_UPDATE === '1' && writes) { write(f, actual); return {ok: true, report: `updated ${f}`}; } if (!fs.existsSync(f)) { - if (!draft) return fail([{path: 'file', expected: f, actual: undefined}]); + if (!draft || !writes) return fail([{path: 'file', expected: f, actual: undefined}]); write(f, actual); - return {ok: false, report: `drafted ${rel('expected', scenario, `${platform}.otlp.json`)}, review it`}; + return {ok: false, report: `drafted ${rel('expected', scenario, 'otlp.json')}, review it`}; } - const diffs = diffOtlp(JSON.parse(fs.readFileSync(f, 'utf8')), actual); + const diffs = diffOtlp(JSON.parse(fs.readFileSync(f, 'utf8')), actual, platform); return diffs.length ? fail(diffs) : {ok: true, report: ''}; } diff --git a/verify/harness/scenario.ts b/verify/harness/scenario.ts index ef921a7..cdc18cb 100644 --- a/verify/harness/scenario.ts +++ b/verify/harness/scenario.ts @@ -1,34 +1,26 @@ import type {HrTime, Tracer, TracerOptions} from '@opentelemetry/api'; -/** The example app's TestNative HybridObject (Task 26): app native code using the public `RNOtel` helpers. - * Mirrors example/modules/test-native/src/TestNative.nitro.ts by hand, so the harness needs no Nitro import. */ export interface TestNative { - /** Starts and ends native `native.work` under `traceparent` ('' = a root), returns its traceparent. */ doWork(traceparent: string, start: HrTime, end: HrTime): string; } export type ScenarioCtx = { tracer: Tracer; - /** Extra tracers, for scenarios that need their own scope (version, schemaUrl). */ getTracer(name: string, version?: string, options?: TracerOptions): Tracer; at(us: number): HrTime; - /** Only on devices (the example app); e2e-only scenarios use it. */ native?: TestNative; }; -/** `jest`: Jest compares the JS output to `.js.otlp.json`. `e2e`: the example apps on devices and web. */ export type Runner = 'jest' | 'e2e'; -/** A platform, or one e2e target (`android-bare`, `ios-expo`, …) for what only one app can run. */ export type Target = 'android' | 'ios' | 'web' | `${'android' | 'ios'}-${'bare' | 'expo'}`; export type Scenario = { name: string; run: (ctx: ScenarioCtx) => Promise; runners: Runner[]; - /** e2e targets it runs on: platforms or target names. */ targets: Target[]; pending: boolean; }; -const BASE_S = 1767225600; // 2026-01-01T00:00:00Z +const BASE_S = 1767225600; export const at = (us: number): HrTime => [BASE_S + Math.floor(us / 1e6), (us % 1e6) * 1000]; diff --git a/verify/harness/shape.ts b/verify/harness/shape.ts deleted file mode 100644 index 8b418af..0000000 --- a/verify/harness/shape.ts +++ /dev/null @@ -1,76 +0,0 @@ -import fs from 'fs'; -import {diffValues, expectedPath, type Diff} from './compare'; -import type {OtlpJson} from './otlpJson'; - -export type SpanShape = { - name: string; - kind: number; - parent: string | null; - status: number; - links: string[]; - attributes: Record; -}; -export type Shape = {resource: string[]; scope: string[]; traces: SpanShape[][]}; - -const kindOf = (v: any = {}): string => { - if ('arrayValue' in v) { - const vals: any[] = v.arrayValue.values ?? []; - return `array<${vals.length ? kindOf(vals[0]) : 'empty'}>`; - } - if ('kvlistValue' in v) return 'kvlist'; - if ('intValue' in v) return 'int'; - if ('doubleValue' in v) return 'double'; - if ('boolValue' in v) return 'bool'; - if ('bytesValue' in v) return 'bytes'; - return 'string'; -}; -// parent/link target not in this export: stable placeholder, never a platform-specific id -const EXTERNAL = '(external)'; -const keys = (set: Set) => [...set].sort(); -const cmp = (a: any, b: any) => (a < b ? -1 : a > b ? 1 : 0); - -/** Structure only: no ids, timestamps or values. */ -export function shapeOf(otlp: OtlpJson): Shape { - const resource = new Set(); - const scope = new Set(); - const spans: any[] = []; - for (const rs of otlp.resourceSpans ?? []) { - for (const a of rs.resource?.attributes ?? []) resource.add(a.key); - for (const ss of rs.scopeSpans ?? []) { - for (const a of ss.scope?.attributes ?? []) scope.add(a.key); - spans.push(...(ss.spans ?? [])); - } - } - const name = new Map(spans.map(s => [s.spanId, s.name])); - const chrono = [...spans].sort( - (a, b) => - cmp(BigInt(a.startTimeUnixNano ?? 0), BigInt(b.startTimeUnixNano ?? 0)) || - cmp(a.spanId, b.spanId), - ); - const traces = new Map(); - for (const s of chrono) { - const t = traces.get(s.traceId) ?? []; - traces.set(s.traceId, t); - t.push({ - name: s.name, - kind: s.kind ?? 0, - parent: s.parentSpanId ? (name.get(s.parentSpanId) ?? EXTERNAL) : null, - status: s.status?.code ?? 0, - links: (s.links ?? []).map((l: any) => name.get(l.spanId) ?? EXTERNAL), - attributes: Object.fromEntries( - (s.attributes ?? []).map((a: any) => [a.key, kindOf(a.value)]), - ), - }); - } - return { - resource: keys(resource), - scope: keys(scope), - traces: [...traces.values()].map(t => t.sort((a, b) => cmp(a.name, b.name))), - }; -} - -export function compareShape(scenario: string, actual: OtlpJson): Diff[] { - const f = expectedPath(scenario, 'shape'); - if (!fs.existsSync(f)) return [{path: 'shape.json', expected: f, actual: undefined}]; - return diffValues(JSON.parse(fs.readFileSync(f, 'utf8')), shapeOf(actual)); -}