Skip to content

Commit ca43015

Browse files
committed
Make protected API
1 parent a68bf32 commit ca43015

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

packages/core/src/scope.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -325,13 +325,6 @@ export class Scope implements ScopeInterface {
325325
return this._session;
326326
}
327327

328-
/**
329-
* @inheritDoc
330-
*/
331-
public getBreadcrumbs(): Breadcrumb[] {
332-
return this._breadcrumbs;
333-
}
334-
335328
/**
336329
* @inheritDoc
337330
*/
@@ -522,7 +515,7 @@ export class Scope implements ScopeInterface {
522515

523516
this._applyFingerprint(event);
524517

525-
const scopeBreadcrumbs = this.getBreadcrumbs();
518+
const scopeBreadcrumbs = this._getBreadcrumbs();
526519
const breadcrumbs = [...(event.breadcrumbs || []), ...scopeBreadcrumbs];
527520
event.breadcrumbs = breadcrumbs.length > 0 ? breadcrumbs : undefined;
528521

@@ -559,6 +552,13 @@ export class Scope implements ScopeInterface {
559552
return this._propagationContext;
560553
}
561554

555+
/**
556+
* Get the breadcrumbs for this scope.
557+
*/
558+
protected _getBreadcrumbs(): Breadcrumb[] {
559+
return this._breadcrumbs;
560+
}
561+
562562
/**
563563
* This will be called after {@link applyToEvent} is finished.
564564
*/

packages/types/src/scope.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,6 @@ export interface Scope {
128128
*/
129129
setSession(session?: Session): this;
130130

131-
/**
132-
* Get all breadcrumbs for this scope.
133-
*/
134-
getBreadcrumbs(): Breadcrumb[];
135-
136131
/**
137132
* Returns the `RequestSession` if there is one
138133
*/

0 commit comments

Comments
 (0)