Skip to content

feat(dips): add chain_id and structured fields to price rejection logs#990

Open
MoonBoi9001 wants to merge 2 commits intomb9/dips-signer-validation-loggingfrom
mb9/dips-price-rejection-logging
Open

feat(dips): add chain_id and structured fields to price rejection logs#990
MoonBoi9001 wants to merge 2 commits intomb9/dips-signer-validation-loggingfrom
mb9/dips-price-rejection-logging

Conversation

@MoonBoi9001
Copy link
Copy Markdown
Member

Motivation

During local-network testing, price rejection logs showed the offered and minimum values in a format string but lacked chain context. When running with multiple networks, an operator can't filter rejections by chain without parsing the message text. The network name was present but the CAIP-2 chain identifier (e.g., eip155:42161 for Arbitrum One) was not, making it harder to correlate with on-chain data.

Summary

  • Resolve the CAIP-2 chain ID from the NetworksRegistry or additional_networks config
  • Include chain_id in all price-related rejection logs
  • Replace format string interpolation with structured tracing fields (offered, minimum) for queryability
  • Apply to both tokens_per_second and tokens_per_entity_per_second rejection paths

Generated with Claude Code

@MoonBoi9001 MoonBoi9001 changed the base branch from mb9/dips-startup-config-logging to mb9/dips-signer-validation-logging March 26, 2026 23:18
Price rejection logs now include chain_id (CAIP-2 identifier) and use
structured tracing fields (offered, minimum) instead of format string
interpolation. Makes it easier to filter and query rejection events
in production log aggregation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@MoonBoi9001 MoonBoi9001 force-pushed the mb9/dips-price-rejection-logging branch from 6de8e3e to a7671d3 Compare March 27, 2026 00:44
Pins the expected bytes16 output for a fixed set of RCA inputs. The
same test vector exists in dipper (dipper-rpc/src/indexer.rs). If
either repo's derivation drifts, the test fails with a message
pointing to the counterpart.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant