Skip to content

Commit 3ccc3fe

Browse files
committed
fix(types): fix mistake on span
1 parent 6f847c0 commit 3ccc3fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/tracing/src/span.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ export class Span implements SpanInterface {
214214
*/
215215
public setHttpStatus(httpStatus: number): this {
216216
this.setTag('http.status_code', String(httpStatus));
217-
const spanStatus = statusFromHttpCode(httpStatus);
217+
const spanStatus = SpanStatus.fromHttpCode(httpStatus);
218218
if (spanStatus !== SpanStatus.UnknownError) {
219219
this.setStatus(spanStatus);
220220
}

0 commit comments

Comments
 (0)