123456789101112131415161718192021222324252627282930313233 |
- import type {Query} from 'history';
- import type {DomainView} from 'sentry/views/insights/pages/useFilters';
- import {getTransactionSummaryBaseUrl} from 'sentry/views/performance/transactionSummary/utils';
- export function profilesRouteWithQuery({
- orgSlug,
- transaction,
- projectID,
- query,
- view,
- }: {
- orgSlug: string;
- query: Query;
- transaction: string;
- projectID?: string | string[];
- view?: DomainView;
- }) {
- const pathname = `${getTransactionSummaryBaseUrl(orgSlug, view)}/profiles/`;
- return {
- pathname,
- query: {
- transaction,
- project: projectID,
- environment: query.environment,
- statsPeriod: query.statsPeriod,
- start: query.start,
- end: query.end,
- query: query.query,
- },
- };
- }
|