Skip to content

fix: add env var to enable OTel in network monitor#1237

Merged
sergerad merged 1 commit intonextfrom
santiagopittella-fix-otel-in-net-monitor
Sep 23, 2025
Merged

fix: add env var to enable OTel in network monitor#1237
sergerad merged 1 commit intonextfrom
santiagopittella-fix-otel-in-net-monitor

Conversation

@SantiagoPittella
Copy link
Copy Markdown
Collaborator

Create a new env var to enable OTel. The variable name is defined in the status.rs file, which doesn't make much sense. A new config.rs file was created (along with the remote prover tests feature), and it is currently open for reviews here: #1236

@SantiagoPittella SantiagoPittella added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label Sep 22, 2025
Copy link
Copy Markdown
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you! I left one question inline: if I understood correctly, we can currently enable OTEL via an environment variable, but not via CLI args - is this right? And if so, any reason not to make it so that it works with CLI args?

const RPC_URL_ENV_VAR: &str = "MIDEN_MONITOR_RPC_URL";
const REMOTE_PROVER_URLS_ENV_VAR: &str = "MIDEN_MONITOR_REMOTE_PROVER_URLS";
const PORT_ENV_VAR: &str = "MIDEN_MONITOR_PORT";
pub(crate) const ENABLE_OTEL_ENV_VAR: &str = "MIDEN_MONITOR_ENABLE_OTEL";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there a reason why we do not include this into the MonitorConfig struct?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I ended up including it in another PR since this was already merged 👌🏼

@sergerad sergerad merged commit 9a36efc into next Sep 23, 2025
7 checks passed
@sergerad sergerad deleted the santiagopittella-fix-otel-in-net-monitor branch September 23, 2025 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog This PR does not require an entry in the `CHANGELOG.md` file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants