Skip to content

Commit

Permalink
Fix vulcan post processing metrics not emitted for short term orders (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
roy-dydx authored Sep 12, 2024
1 parent 5acd685 commit 10189d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions indexer/services/vulcan/src/lib/on-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ export async function onMessage(message: KafkaMessage): Promise<void> {
await handler.handleUpdate(update, headers);

const postProcessingTime: number = Date.now();
if (originalMessageTimestamp !== undefined) {
if (headers.message_received_timestamp !== undefined) {
stats.timing(
`${config.SERVICE_NAME}.message_time_since_received_post_processing`,
postProcessingTime - Number(originalMessageTimestamp),
postProcessingTime - Number(headers.message_received_timestamp),
STATS_NO_SAMPLING,
{
topic: KafkaTopics.TO_VULCAN,
Expand Down

0 comments on commit 10189d6

Please sign in to comment.