Skip to content

Commit b194be4

Browse files
authored
feat(v8/core): Remove deprecated setHttpStatus (#10774)
1 parent e1e6a38 commit b194be4

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

packages/core/src/tracing/sentrySpan.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import {
2525
spanToTraceContext,
2626
} from '../utils/spanUtils';
2727
import type { SpanStatusType } from './spanstatus';
28-
import { setHttpStatus } from './spanstatus';
2928
import { addChildSpanToSpan } from './trace';
3029

3130
/**
@@ -390,15 +389,6 @@ export class SentrySpan implements SpanInterface {
390389
return this;
391390
}
392391

393-
/**
394-
* @inheritDoc
395-
* @deprecated Use top-level `setHttpStatus()` instead.
396-
*/
397-
public setHttpStatus(httpStatus: number): this {
398-
setHttpStatus(this, httpStatus);
399-
return this;
400-
}
401-
402392
/**
403393
* @inheritDoc
404394
*/

packages/types/src/span.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -297,13 +297,6 @@ export interface Span extends Omit<SpanContext, 'name' | 'op' | 'status' | 'orig
297297
*/
298298
setStatus(status: string): this;
299299

300-
/**
301-
* Sets the status attribute on the current span based on the http code
302-
* @param httpStatus http code used to set the status
303-
* @deprecated Use top-level `setHttpStatus()` instead.
304-
*/
305-
setHttpStatus(httpStatus: number): this;
306-
307300
/**
308301
* Update the name of the span.
309302
*/

0 commit comments

Comments
 (0)