Skip to content

Commit

Permalink
fix trace name ui startup at sentry utils
Browse files Browse the repository at this point in the history
  • Loading branch information
tommasini committed Nov 11, 2024
1 parent b841b3d commit fc207fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/util/sentry/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { isE2E } from '../test/utils';
import { store } from '../../store';
import { Performance } from '../../core/Performance';
import Device from '../device';
import { TraceName } from '../trace';
/**
* This symbol matches all object properties when used in a mask
*/
Expand Down Expand Up @@ -401,7 +402,7 @@ function rewriteReport(report) {
*/
export function excludeEvents(event) {
// This is needed because store starts to initialise before performance observers completes to measure app start time
if (event?.transaction === 'UIStartup' && Device.isAndroid()) {
if (event?.transaction === TraceName.UIStartup && Device.isAndroid()) {
const appLaunchTime = Performance.appLaunchTime;
const formattedAppLaunchTime = (event.start_timestamp = Number(
`${appLaunchTime.toString().slice(0, 10)}.${appLaunchTime
Expand Down

0 comments on commit fc207fb

Please sign in to comment.