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(enginenetx): track operations and collect stats #1299

Merged
merged 3 commits into from
Sep 25, 2023

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented Sep 25, 2023

This diff modifies the enginenetx package such that we track the results of operations we perform and collect statistics.

The statistics will be saved in the StateDir where we already save other statistics, e.g., the ones related to DoH.

While there, realize that we should also count the number of interrupted operations. Also, realize that the TLS verification cannot be interrupted, so there's no point in passing a ctx to the related stats manager callback.

Part of ooni/probe#2531

This diff modifies the enginenetx package such that we track the
results of operations we perform and collect statistics.

The statistics will be saved in the `StateDir` where we already
save other statistics, e.g., the ones related to DoH.

Part of ooni/probe#2531
@bassosimone bassosimone merged commit 363f4b8 into master Sep 25, 2023
6 checks passed
@bassosimone bassosimone deleted the issue/2531-small branch September 25, 2023 13:27
Murphy-OrangeMud pushed a commit to Murphy-OrangeMud/probe-cli that referenced this pull request Feb 13, 2024
This diff modifies the enginenetx package such that we track the results
of operations we perform and collect statistics.

The statistics will be saved in the `StateDir` where we already save
other statistics, e.g., the ones related to DoH.

While there, realize that we should also count the number of interrupted
operations. Also, realize that the TLS verification cannot be
interrupted, so there's no point in passing a `ctx` to the related stats
manager callback.

Part of ooni/probe#2531
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