diff --git a/experimental/CHANGELOG.md b/experimental/CHANGELOG.md index 0b37b3aa313..ef56c5b20ca 100644 --- a/experimental/CHANGELOG.md +++ b/experimental/CHANGELOG.md @@ -7,6 +7,8 @@ All notable changes to experimental packages in this project will be documented ### :boom: Breaking Change +* fix(instrumentation-fetch)! Remove HTTP prefix in span name. [#4962](https://github.com/open-telemetry/opentelemetry-js/pull/4962) @wolfgangcodes + ### :rocket: (Enhancement) ### :bug: (Bug Fix) diff --git a/experimental/packages/opentelemetry-instrumentation-fetch/src/fetch.ts b/experimental/packages/opentelemetry-instrumentation-fetch/src/fetch.ts index fedb495d685..0f7be7ee9fc 100644 --- a/experimental/packages/opentelemetry-instrumentation-fetch/src/fetch.ts +++ b/experimental/packages/opentelemetry-instrumentation-fetch/src/fetch.ts @@ -206,7 +206,7 @@ export class FetchInstrumentation extends InstrumentationBase { it('span should have correct name', () => { const span: tracing.ReadableSpan = exportSpy.args[1][0][0]; - assert.strictEqual(span.name, 'HTTP GET', 'span has wrong name'); + assert.strictEqual(span.name, 'GET', 'span has wrong name'); }); it('span should have correct kind', () => { @@ -932,7 +932,7 @@ describe('fetch', () => { ); assert.strictEqual( exportSpy.args[0][0][0].name, - 'HTTP GET', + 'GET', 'wrong span captured' );