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

Fix vulcan post processing metrics not emitted for short term orders #2244

Merged
merged 1 commit into from
Sep 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix vulcan post processing metrics not emitted for short term orders
  • Loading branch information
roy-dydx committed Sep 12, 2024
commit bdc4ea7b81c57853710ecf26ea82cdf67c9de7d8
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
Loading