Skip to content

Commit 9def894

Browse files
committed
fix: error out on when even new observe api is used on go and js sdks
1 parent 7eca8ef commit 9def894

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • js/src/lib/collectors/span

js/src/lib/collectors/span/mod.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ export class SpanCollector implements Collector {
6161
if (apiNames.has(iName.name)) {
6262
throw new Error("js sdk does not yet support Observe API");
6363
}
64+
} else if (iName.module === 'dylibso:observe/api') {
65+
throw new Error("js sdk does not yet support Observe API");
6466
}
6567
}
6668
}

0 commit comments

Comments
 (0)