Skip to content

Commit

Permalink
feat(react): Make Profiler _mountSpan attribute protected (#3904)
Browse files Browse the repository at this point in the history
Done for React Native SDK.

Co-authored-by: Abhijeet Prasad <aprasad@sentry.io>
  • Loading branch information
jennmueng and AbhiPrasad committed Aug 23, 2021
1 parent ecf8098 commit 36ee3d6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/react/src/profiler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,14 @@ export type ProfilerProps = {
* spans based on component lifecycles.
*/
class Profiler extends React.Component<ProfilerProps> {
/**
* The span of the mount activity
* Made protected for the React Native SDK to access
*/
protected _mountSpan: Span | undefined = undefined;

// The activity representing how long it takes to mount a component.
private _mountActivity: number | null = null;
// The span of the mount activity
private _mountSpan: Span | undefined = undefined;

// eslint-disable-next-line @typescript-eslint/member-ordering
public static defaultProps: Partial<ProfilerProps> = {
Expand Down

0 comments on commit 36ee3d6

Please sign in to comment.