diff --git a/static/app/utils/profiling/hooks/useProfileEvents.spec.tsx b/static/app/utils/profiling/hooks/useProfileEvents.spec.tsx index b8d32674f21711..affe261a204b57 100644 --- a/static/app/utils/profiling/hooks/useProfileEvents.spec.tsx +++ b/static/app/utils/profiling/hooks/useProfileEvents.spec.tsx @@ -26,8 +26,9 @@ describe('useProfileEvents', () => { body, match: [ MockApiClient.matchQuery({ - dataset: 'discover', - query: '(has:profile.id OR (has:profiler.id has:thread.id)) (transaction:foo)', + dataset: 'spans', + query: + 'is_transaction:true (has:profile.id OR (has:profiler.id has:thread.id)) (transaction:foo)', }), ], }); @@ -54,7 +55,7 @@ describe('useProfileEvents', () => { url: `/organizations/${organization.slug}/events/`, status: 400, statusCode: 400, - match: [MockApiClient.matchQuery({dataset: 'discover'})], + match: [MockApiClient.matchQuery({dataset: 'spans'})], }); const {result} = renderHookWithProviders(useProfileEvents, { diff --git a/static/app/utils/profiling/hooks/useProfileEvents.tsx b/static/app/utils/profiling/hooks/useProfileEvents.tsx index e16464aa3df567..e27c43eb11b5c9 100644 --- a/static/app/utils/profiling/hooks/useProfileEvents.tsx +++ b/static/app/utils/profiling/hooks/useProfileEvents.tsx @@ -35,11 +35,11 @@ export function useProfileEvents({ const organization = useOrganization(); const {selection} = usePageFilters(); - query = `(has:profile.id OR (has:profiler.id has:thread.id)) ${query ? `(${query})` : ''}`; + query = `is_transaction:true (has:profile.id OR (has:profiler.id has:thread.id)) ${query ? `(${query})` : ''}`; const endpointOptions = { query: { - dataset: 'discover', + dataset: 'spans', referrer, project: projects || selection.projects, environment: selection.environments, @@ -88,5 +88,4 @@ type ProfilingFieldType = | 'p75()' | 'p95()' | 'p99()' - | 'count()' - | 'last_seen()'; + | 'count()'; diff --git a/static/app/views/profiling/content.tsx b/static/app/views/profiling/content.tsx index 8b3f3b0fa1e571..131d6c24506e9a 100644 --- a/static/app/views/profiling/content.tsx +++ b/static/app/views/profiling/content.tsx @@ -397,7 +397,6 @@ function ProfilingContentPageHeader() { const ALL_FIELDS = [ 'transaction', 'project.id', - 'last_seen()', 'p50()', 'p75()', 'p95()',