From e94c46f8b085e2ee48b8c83ed25b768626ad1da9 Mon Sep 17 00:00:00 2001 From: Gavin Hayes Date: Mon, 27 Nov 2023 15:55:02 -0500 Subject: [PATCH] fix: error out on when even new observe api is used on go and js sdks --- js/src/lib/collectors/span/mod.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/src/lib/collectors/span/mod.ts b/js/src/lib/collectors/span/mod.ts index 2140c2d..0a43550 100644 --- a/js/src/lib/collectors/span/mod.ts +++ b/js/src/lib/collectors/span/mod.ts @@ -70,6 +70,8 @@ export class SpanCollector implements Collector { if (apiNames.has(iName.name)) { throw new Error("js sdk does not yet support Observe API"); } + } else if (iName.module === 'dylibso:observe/api') { + throw new Error("js sdk does not yet support Observe API"); } } }