Skip to content

Commit

Permalink
Ensure message forwarder samples all stats (#1653)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher-Li authored Jun 10, 2024
1 parent e009904 commit 5a8e4c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions indexer/services/socks/src/lib/message-forwarder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
logger,
InfoObject,
safeJsonStringify,
STATS_NO_SAMPLING,
} from '@dydxprotocol-indexer/base';
import { updateOnMessageFunction } from '@dydxprotocol-indexer/kafka';
import { KafkaMessage } from 'kafkajs';
Expand Down Expand Up @@ -147,7 +146,7 @@ export class MessageForwarder {
stats.timing(
`${config.SERVICE_NAME}.message_time_since_received`,
startForwardMessage - Number(originalMessageTimestamp),
STATS_NO_SAMPLING,
config.MESSAGE_FORWARDER_STATSD_SAMPLE_RATE,
{
topic,
event_type: String(message.headers?.event_type),
Expand Down

0 comments on commit 5a8e4c7

Please sign in to comment.