Skip to content

Commit f89a842

Browse files
authored
fix(tracing): Export SpanStatus enum (#4478)
The `SpanStatus` enum is deprecated, but we should still export it. It should be treeshaken out if not used, so there should be no bundle impact.
1 parent 1214a03 commit f89a842

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/tracing/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ export { Integrations };
2222
export { BrowserTracing } from './browser';
2323

2424
export { Span, SpanStatusType, spanStatusfromHttpCode } from './span';
25+
// eslint-disable-next-line deprecation/deprecation
26+
export { SpanStatus } from './spanstatus';
2527
export { Transaction } from './transaction';
2628
export {
2729
// TODO deprecate old name in v7

packages/tracing/src/spanstatus.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
/** The status of an Span. */
1+
/** The status of an Span.
2+
*
3+
* @deprecated Use string literals - if you require type casting, cast to SpanStatusType type
4+
*/
25
// eslint-disable-next-line import/export
36
export enum SpanStatus {
47
/** The operation completed successfully. */

0 commit comments

Comments
 (0)