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

Add error counter of some sort to count bad cursor connects so admin can take action #30

Open
matthewdarwin opened this issue Jan 27, 2024 · 1 comment

Comments

@matthewdarwin
Copy link

In prometheus exporter for firehose and substreams-tier1, add error counter of some sort to count bad cursor connects so admin can take action.

2024-01-26T23:39:16.069Z INFO (firehose) processing incoming blocks request {"trace_id": "f3f777a35285592915af3541f4796952", "req_start_block": 35551499, "req_cursor": "fJKgKLeJc4qUmmBgqLig1KWwLpc_DFlqUA7kLhhJj4zw-HLE25iiBjUgYBqGkfv22xK4GVyt2Y2cRih6oMRS6YO7weljvyk_R34ukY7t8rzmcPfzbFkSc7kzX7yIYYnRWDnSZwv_c7kK59PvOvLfYkY0NpIuKzCy3TlWpdYGdqIW6yJnlT2vd82HgqqUoIUT9-UkQeajkiiqDzx1KE4PbsWAZaOf6TojNA==", "req_stop_block": 0, "final_blocks_only": false, "with_index_provider": true, "transform_desc": "Combined filter: Calls:[], Logs:[{addrs: 0x6bd8e3beec87176ba9c705c9507aa5e6f0e6706f,0x9abc3f6c11dbd83234d6e6b2c373dfc1893f6...}], SendAllBlockHeaders: false", "api_key_id": "xxxxxxxxxxx", "user_id": "xxxxxxxxxxx", "real_ip": "1.2.3.4"}

2024-01-26T23:39:16.070Z INFO (firehose) creating new joining source {"trace_id": "f3f777a35285592915af3541f4796952", "cursor": "c1:17:35551498:768016546de87f1b667cb617babf1b42eba2a7b87152273989841ec922a0f63a:35551498:768016546de87f1b667cb617babf1b42eba2a7b87152273989841ec922a0f63a", "start_block_num": 35551499}

2024-01-26T23:39:27.191Z INFO (firehose) firehose process completed {"trace_id": "f3f777a35285592915af3541f4796952", "block_sent": 0, "egress_bytes": 0, "error": "cannot resolve cursor: missing link between blocks 35551498 and #35551498 (768016546de87f1b667cb617babf1b42eba2a7b87152273989841ec922a0f63a): no forked-block file found with ID ending with 19d9b5df2b09b45f.", "api_key_id": "xxxxxxxxxxx, "user_id": "xxxxxxxxxxx", "real_ip": "1.2.3.4"}
@matthewdarwin
Copy link
Author

Generically do this for any type of error.

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

No branches or pull requests

1 participant