Skip to content

Commit

Permalink
feat: Frontend display number of runs instead of events for batchexports
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias committed Jun 12, 2024
1 parent 1e75757 commit 0c31647
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/scenes/pipeline/AppMetricSparkLine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ export function AppMetricSparkLine({ pipelineNode }: { pipelineNode: PipelineNod
const displayData: SparklineTimeSeries[] = [
{
color: 'success',
name: 'Events sent',
name: pipelineNode.backend == 'batch_export' ? 'Runs succeeded' : 'Events sent',
values: successes,
},
]
if (appMetricsResponse?.metrics.failures.some((failure) => failure > 0)) {
displayData.push({
color: 'danger',
name: 'Events dropped',
name: pipelineNode.backend == 'batch_export' ? 'Runs failed' : 'Events dropped',
values: failures,
})
}
Expand Down

0 comments on commit 0c31647

Please sign in to comment.