Skip to content

Commit

Permalink
fix(tracing): Export SpanStatus enum (#4478)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AbhiPrasad committed Feb 1, 2022
1 parent 1214a03 commit f89a842
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/tracing/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export { Integrations };
export { BrowserTracing } from './browser';

export { Span, SpanStatusType, spanStatusfromHttpCode } from './span';
// eslint-disable-next-line deprecation/deprecation
export { SpanStatus } from './spanstatus';
export { Transaction } from './transaction';
export {
// TODO deprecate old name in v7
Expand Down
5 changes: 4 additions & 1 deletion packages/tracing/src/spanstatus.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/** The status of an Span. */
/** The status of an Span.
*
* @deprecated Use string literals - if you require type casting, cast to SpanStatusType type
*/
// eslint-disable-next-line import/export
export enum SpanStatus {
/** The operation completed successfully. */
Expand Down

0 comments on commit f89a842

Please sign in to comment.