Browse Source

feat(sampling): Change empty breakdown message (#37991)

Matej Minar 2 years ago
parent
commit
dddb995d6f

+ 5 - 1
static/app/views/settings/project/server-side-sampling/samplingBreakdown.tsx

@@ -109,7 +109,11 @@ export function SamplingBreakdown({orgSlug}: Props) {
                 )}
               </Projects>
             ) : (
-              <EmptyMessage>{t('No transactions in the last 24 hours')}</EmptyMessage>
+              <EmptyMessage>
+                {t(
+                  'There were no traces initiated from this project in the last 24 hours.'
+                )}
+              </EmptyMessage>
             )}
           </Fragment>
         )}

+ 5 - 1
tests/js/spec/views/settings/project/server-side-sampling/samplingBreakdown.spec.tsx

@@ -18,7 +18,11 @@ describe('Server-Side Sampling - SamplingBreakdown', function () {
 
     render(<SamplingBreakdown orgSlug={organization.slug} />);
 
-    expect(screen.getByText('No transactions in the last 24 hours')).toBeInTheDocument();
+    expect(
+      screen.getByText(
+        'There were no traces initiated from this project in the last 24 hours.'
+      )
+    ).toBeInTheDocument();
   });
 
   it('renders project breakdown', function () {