Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added question tooltip beside processed baseline toggle. #38875

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 24 additions & 1 deletion static/app/views/eventsV2/chartFooter.tsx
Expand Up @@ -9,8 +9,10 @@ import {
SectionHeading,
SectionValue,
} from 'sentry/components/charts/styles';
import ExternalLink from 'sentry/components/links/externalLink';
import QuestionTooltip from 'sentry/components/questionTooltip';
import Switch from 'sentry/components/switchButton';
import {t} from 'sentry/locale';
import {t, tct} from 'sentry/locale';
import {Organization, SelectValue} from 'sentry/types';
import EventView from 'sentry/utils/discover/eventView';
import {TOP_EVENT_MODES} from 'sentry/utils/discover/types';
Expand Down Expand Up @@ -85,6 +87,27 @@ export default function ChartFooter({
size="lg"
toggle={() => setShowBaseline(!showBaseline)}
/>
<QuestionTooltip
isHoverable
position="top"
size="sm"
title={tct(
'The baseline is only available for transaction events when displaying the Top Period.[break]The baseline shows the total [processedEventsLink: processed events] matching your query, compared to the [indexedEventsLink: indexed events].',
{
indexedEventsLink: (
<ExternalLink href="https://docs.sentry.io/product/sentry-basics/sampling/#server-side-sampling" />
),
processedEventsLink: (
<ExternalLink href="https://docs.sentry.io/product/sentry-basics/sampling/#client-side-sdk-sampling" />
),
break: (
<div>
<br />
</div>
),
}
)}
/>
</Fragment>
</Feature>
<OptionSelector
Expand Down