@@ -37,7 +37,7 @@ import { setHttpStatus } from './spanstatus';
3737 * @hidden
3838 */
3939export class SpanRecorder {
40- public spans : Span [ ] ;
40+ public spans : SentrySpan [ ] ;
4141
4242 private readonly _maxlen : number ;
4343
@@ -52,7 +52,7 @@ export class SpanRecorder {
5252 * trace tree (i.e.the first n spans with the smallest
5353 * start_timestamp).
5454 */
55- public add ( span : Span ) : void {
55+ public add ( span : SentrySpan ) : void {
5656 if ( this . spans . length > this . _maxlen ) {
5757 // eslint-disable-next-line deprecation/deprecation
5858 span . spanRecorder = undefined ;
@@ -65,7 +65,7 @@ export class SpanRecorder {
6565/**
6666 * Span contains all data about a span
6767 */
68- export class Span implements SpanInterface {
68+ export class SentrySpan implements SpanInterface {
6969 /**
7070 * Tags for the span.
7171 * @deprecated Use `spanToJSON(span).atttributes` instead.
@@ -386,7 +386,7 @@ export class Span implements SpanInterface {
386386 public startChild (
387387 spanContext ?: Pick < SpanContext , Exclude < keyof SpanContext , 'sampled' | 'traceId' | 'parentSpanId' > > ,
388388 ) : SpanInterface {
389- const childSpan = new Span ( {
389+ const childSpan = new SentrySpan ( {
390390 ...spanContext ,
391391 parentSpanId : this . _spanId ,
392392 sampled : this . _sampled ,
0 commit comments