Skip to content

Commit c517e92

Browse files
committed
rename to attributes
1 parent 934da39 commit c517e92

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/react/src/profiler.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Profiler extends React.Component<ProfilerProps> {
6060
name: `<${name}>`,
6161
op: REACT_MOUNT_OP,
6262
origin: 'auto.ui.react.profiler',
63-
data: { 'ui.component_name': name },
63+
attributes: { 'ui.component_name': name },
6464
});
6565
}
6666
}
@@ -87,7 +87,7 @@ class Profiler extends React.Component<ProfilerProps> {
8787
op: REACT_UPDATE_OP,
8888
origin: 'auto.ui.react.profiler',
8989
startTimestamp: now,
90-
data: {
90+
attributes: {
9191
changedProps,
9292
'ui.component_name': this.props.name,
9393
},
@@ -120,7 +120,7 @@ class Profiler extends React.Component<ProfilerProps> {
120120
op: REACT_RENDER_OP,
121121
origin: 'auto.ui.react.profiler',
122122
startTimestamp: this._mountSpan.endTimestamp,
123-
data: { 'ui.component_name': name },
123+
attributes: { 'ui.component_name': name },
124124
});
125125
if (renderSpan) {
126126
renderSpan.end(endTime);
@@ -189,7 +189,7 @@ function useProfiler(
189189
name: `<${name}>`,
190190
op: REACT_MOUNT_OP,
191191
origin: 'auto.ui.react.profiler',
192-
data: { 'ui.component_name': name },
192+
attributes: { 'ui.component_name': name },
193193
});
194194
}
195195

@@ -209,7 +209,7 @@ function useProfiler(
209209
op: REACT_RENDER_OP,
210210
origin: 'auto.ui.react.profiler',
211211
startTimestamp: mountSpan.endTimestamp,
212-
data: { 'ui.component_name': name },
212+
attributes: { 'ui.component_name': name },
213213
parentSpanId: mountSpan.spanContext().spanId,
214214
});
215215
if (renderSpan) {

0 commit comments

Comments
 (0)