|
@@ -11,6 +11,7 @@ interface UseProfileEventsStatsOptions<F> {
|
|
|
dataset: 'discover' | 'profiles' | 'profileFunctions';
|
|
|
referrer: string;
|
|
|
yAxes: readonly F[];
|
|
|
+ continuousProfilingCompat?: boolean;
|
|
|
datetime?: PageFilters['datetime'];
|
|
|
enabled?: boolean;
|
|
|
interval?: string;
|
|
@@ -18,6 +19,7 @@ interface UseProfileEventsStatsOptions<F> {
|
|
|
}
|
|
|
|
|
|
export function useProfileEventsStats<F extends string>({
|
|
|
+ continuousProfilingCompat,
|
|
|
dataset,
|
|
|
datetime,
|
|
|
interval,
|
|
@@ -36,7 +38,11 @@ export function useProfileEventsStats<F extends string>({
|
|
|
}
|
|
|
|
|
|
if (dataset === 'discover') {
|
|
|
- query = `has:profile.id ${query ? `(${query})` : ''}`;
|
|
|
+ if (continuousProfilingCompat) {
|
|
|
+ query = `(has:profile.id OR (has:profiler.id has:thread.id)) ${query ? `(${query})` : ''}`;
|
|
|
+ } else {
|
|
|
+ query = `has:profile.id ${query ? `(${query})` : ''}`;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
const path = `/organizations/${organization.slug}/events-stats/`;
|