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

multi: tracing in CLI, request ID handling #35

Merged
merged 1 commit into from
Feb 10, 2025
Merged

Conversation

torkelrogstad
Copy link
Contributor

Add capabilities for setting request IDs through header values, which we include in tracing spans. We then set randomly generated request IDs in the CLI, such that it's possible to trace requests/responses going through the system.

This is conceptually very similar to LayerTwo-Labs/bip300301_enforcer#150.

One would think that we could do this with the actual id field of the JSON-RPC bodies. This is not possible, because the jsonrpsee library does not make it possible to configure this.

Upstream issue for this paritytech/jsonrpsee#1524

@torkelrogstad torkelrogstad requested a review from Ash-L2L February 9, 2025 16:10
Add capabilities for setting request IDs through header values, which we
include in tracing spans. We then set randomly generated request IDs in
the CLI, such that it's possible to trace requests/responses going
through the system.

This is conceptually very similar to LayerTwo-Labs/bip300301_enforcer#150.

One would think that we could do this with the actual `id` field of the
JSON-RPC bodies. This is not possible, because the `jsonrpsee` library
does not make it possible to configure this.

Upstream issue for this paritytech/jsonrpsee#1524
@Ash-L2L Ash-L2L merged commit 250841e into master Feb 10, 2025
7 checks passed
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.

2 participants