diff --git a/plugins/node/opentelemetry-instrumentation-koa/test/koa.test.ts b/plugins/node/opentelemetry-instrumentation-koa/test/koa.test.ts index ba7db72aff..24633ff0df 100644 --- a/plugins/node/opentelemetry-instrumentation-koa/test/koa.test.ts +++ b/plugins/node/opentelemetry-instrumentation-koa/test/koa.test.ts @@ -158,7 +158,7 @@ describe('Koa Instrumentation', () => { const exportedRootSpan = memoryExporter .getFinishedSpans() - .find(span => span.name === 'rootSpan'); + .find(span => span.name === 'GET /post/:id'); assert.notStrictEqual(exportedRootSpan, undefined); }); }); @@ -200,7 +200,7 @@ describe('Koa Instrumentation', () => { const exportedRootSpan = memoryExporter .getFinishedSpans() - .find(span => span.name === 'rootSpan'); + .find(span => span.name === 'GET /:first/post/:id'); assert.notStrictEqual(exportedRootSpan, undefined); }); }); @@ -240,7 +240,7 @@ describe('Koa Instrumentation', () => { const exportedRootSpan = memoryExporter .getFinishedSpans() - .find(span => span.name === 'rootSpan'); + .find(span => span.name === 'GET /:first/post/:id'); assert.notStrictEqual(exportedRootSpan, undefined); }); });