Skip to content

Commit 7a593a7

Browse files
committed
use setTag and setData again :(
1 parent 414f7c9 commit 7a593a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/tracing/spanstatus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export function setHttpStatus(span: Span, httpStatus: number): void {
135135
// eslint-disable-next-line deprecation/deprecation
136136
span.setTag('http.status_code', String(httpStatus));
137137
// eslint-disable-next-line deprecation/deprecation
138-
span.setTag('http.response.status_code', httpStatus);
138+
span.setData('http.response.status_code', httpStatus);
139139

140140
const spanStatus = spanStatusfromHttpCode(httpStatus);
141141
if (spanStatus !== 'unknown_error') {

0 commit comments

Comments
 (0)