tracesSearchBar.tsx 528 B

12345678910111213141516171819
  1. import type {SmartSearchBarProps} from 'sentry/components/smartSearchBar';
  2. import SmartSearchBar from 'sentry/components/smartSearchBar';
  3. import {t} from 'sentry/locale';
  4. interface TracesSearchBarProps {
  5. handleSearch: SmartSearchBarProps['onSearch'];
  6. query: string;
  7. }
  8. export function TracesSearchBar({query, handleSearch}: TracesSearchBarProps) {
  9. // TODO: load tags for autocompletion
  10. return (
  11. <SmartSearchBar
  12. query={query}
  13. onSearch={handleSearch}
  14. placeholder={t('Filter by tags')}
  15. />
  16. );
  17. }