Skip to content

Commit c08ac29

Browse files
authored
fix: use old tag name for compatibility - http.status_code (#934)
1 parent c6d7edb commit c08ac29

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/integration-tests/src/tests/docload/docload.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ test.describe('docload', () => {
9898
expect(docFetchSpans[0].tags['link.spanId']).toBeDefined()
9999
if (browserName !== 'webkit') {
100100
// Webkit does not support https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/responseStatus
101-
expect(parseInt(docFetchSpans[0].tags['http.response.status_code'] as string)).toBe(200)
101+
expect(parseInt(docFetchSpans[0].tags['http.status_code'] as string)).toBe(200)
102102
}
103103

104104
expect(parseInt(scriptFetchSpans[0].tags['http.response_content_length'] as string)).toBeGreaterThan(0)

packages/web/src/SplunkDocumentLoadInstrumentation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export class SplunkDocumentLoadInstrumentation extends DocumentLoadInstrumentati
7777
}
7878

7979
if (navEntries[0]?.responseStatus) {
80-
span.setAttribute('http.response.status_code', navEntries[0].responseStatus)
80+
span.setAttribute('http.status_code', navEntries[0].responseStatus)
8181
}
8282
}
8383

0 commit comments

Comments
 (0)