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

feat: implement blobstreamx contract monitor #3

Merged
merged 3 commits into from
Jan 18, 2024
Merged

feat: implement blobstreamx contract monitor #3

merged 3 commits into from
Jan 18, 2024

Conversation

rach-id
Copy link
Member

@rach-id rach-id commented Jan 16, 2024

Overview

The monitor implementation. It will show logs like:

$ blobstreamx-monitor  start --log.level debug --evm.rpc wss://sepolia.infura.io/ws/v3/f5e1862305274640b76f487f5bba437c --evm.contract-address 0x48B257EC1610d04191cC2c528d0c940AdbE1E439

1:18AM INF initializing watcher build_date= version=
1:19AM INF global meter setup namespace=blobstreamx-watcher service_instance_id_key=0x48B257EC1610d04191cC2c528d0c940AdbE1E439 service_name_key=blobstreamx-watcher
1:19AM INF starting watcher address=0x48B257EC1610d04191cC2c528d0c940AdbE1E439 rpc=wss://sepolia.infura.io/ws/v3/f5e1862305274640b76f487f5bba437c
1:33AM INF received new data root tuple root event data_commitment=81674f83534df75ede7bd736129bde4d439ca71a9937980395d967f1de611b1c end_block=564350 nonce=346 start_block=564258
1:33AM DBG incrementing metric

and will submit an event to the otel collector and can be visualized in grafana.

Checklist

  • New and updated code has appropriate documentation
  • New and updated code has new and/or updated testing
  • Required CI checks are passing
  • Visual proof for any user facing features like CLI or documentation updates
  • Linked issues closed with keywords

@rach-id rach-id added the enhancement New feature or request label Jan 16, 2024
@rach-id rach-id requested a review from evan-forbes January 16, 2024 00:34
@rach-id rach-id self-assigned this Jan 16, 2024
Copy link
Member

@evan-forbes evan-forbes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utack!

@rach-id rach-id merged commit bd10196 into main Jan 18, 2024
12 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants