diff --git a/static/app/utils/profiling/frame.tsx b/static/app/utils/profiling/frame.tsx index 3d9f9cfcf34147..973b718f80bb8a 100644 --- a/static/app/utils/profiling/frame.tsx +++ b/static/app/utils/profiling/frame.tsx @@ -1,3 +1,4 @@ +import {trimPackage} from 'sentry/components/events/interfaces/frame/utils'; import type {SymbolicatorStatus} from 'sentry/components/events/interfaces/types'; import {t} from 'sentry/locale'; @@ -159,8 +160,9 @@ export class Frame { } getSourceLocation(): string { + const trimmedPackage = this.package ? trimPackage(this.package) : this.package; const packageFileOrPath: string = - this.file ?? this.module ?? this.package ?? this.path ?? ''; + this.file ?? this.module ?? trimmedPackage ?? this.path ?? ''; const line = typeof this.line === 'number' ? this.line : ''; const column = typeof this.column === 'number' ? this.column : '';