Skip to content

Commit 30e3286

Browse files
committed
Make pushActivity take entire op string
1 parent 4fc1d2e commit 30e3286

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

packages/react/src/constants.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,3 @@ export const REACT_RENDER_OP = 'ui.react.render';
33
export const REACT_UPDATE_OP = 'ui.react.update';
44

55
export const REACT_MOUNT_OP = 'ui.react.mount';
6-
7-
export const REACT_OP = 'ui.react';

packages/react/src/profiler.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { timestampWithMs } from '@sentry/utils';
66
import hoistNonReactStatics from 'hoist-non-react-statics';
77
import * as React from 'react';
88

9-
import { REACT_MOUNT_OP, REACT_OP, REACT_RENDER_OP, REACT_UPDATE_OP } from './constants';
9+
import { REACT_MOUNT_OP, REACT_RENDER_OP, REACT_UPDATE_OP } from './constants';
1010

1111
export const UNKNOWN_COMPONENT = 'unknown';
1212

@@ -38,7 +38,7 @@ function pushActivity(name: string, op: string): number | null {
3838

3939
return (globalTracingIntegration as any).constructor.pushActivity(name, {
4040
description: `<${name}>`,
41-
op: `${REACT_OP}.${op}`,
41+
op,
4242
});
4343
}
4444

@@ -117,7 +117,7 @@ class Profiler extends React.Component<ProfilerProps> {
117117
// eslint-disable-next-line deprecation/deprecation
118118
if (getTracingIntegration()) {
119119
// eslint-disable-next-line deprecation/deprecation
120-
this._mountActivity = pushActivity(name, 'mount');
120+
this._mountActivity = pushActivity(name, REACT_MOUNT_OP);
121121
} else {
122122
const activeTransaction = getActiveTransaction();
123123
if (activeTransaction) {

0 commit comments

Comments
 (0)