Skip to content

Commit

Permalink
[TRA-599] Set market pair for telemetry in Slinky Daemon (#2239)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyaoy authored Sep 16, 2024
1 parent 521ed1b commit 2882271
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions protocol/daemons/slinky/client/market_pair_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"google.golang.org/grpc"

appflags "github.com/dydxprotocol/v4-chain/protocol/app/flags"
pricefeedmetrics "github.com/dydxprotocol/v4-chain/protocol/daemons/pricefeed/metrics"
daemonlib "github.com/dydxprotocol/v4-chain/protocol/daemons/shared"
daemontypes "github.com/dydxprotocol/v4-chain/protocol/daemons/types"
"github.com/dydxprotocol/v4-chain/protocol/lib/slinky"
Expand Down Expand Up @@ -101,6 +102,7 @@ func (m *MarketPairFetcherImpl) FetchIdMappings(ctx context.Context) error {
}
m.Logger.Debug("Mapped market to pair", "market id", mp.Id, "currency pair", cp.String())
compatMappings[cp] = mp.Id
pricefeedmetrics.SetMarketPairForTelemetry(mp.Id, mp.Pair)
}
m.compatMu.Lock()
defer m.compatMu.Unlock()
Expand Down

0 comments on commit 2882271

Please sign in to comment.