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(admin): Return error status code from admin console if tracing is disabled on startup. #5092

Merged
merged 3 commits into from
Jan 30, 2025

Conversation

daria305
Copy link
Contributor

Description of change

Because tracing might be expensive operation, tracing is not enabled by default and it can be enabled only if node operator provide TRACE_FILTER on the node startup.
The admin interface endpoints: enable-tracing and reset_tracing allow to start and reset level of tracing but they work only if tracing was enabled on the node startup. Currently admin endpoint always returned OK status and information about ignoring request was only printed in logs, what was misleading. Now we correctly inform that tracing cannot be enabled and why.

Links to any relevant issues

Related to #4322

Type of change

Choose a type of change, and delete any options that are not relevant.

  • Enhancement (a non-breaking change which adds functionality)

How the change has been tested

Tested by running a node and using admin api

Change checklist

Tick the boxes that are relevant to your changes, and delete any items that are not.

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code

@daria305 daria305 requested review from a team as code owners January 30, 2025 08:41
Copy link

vercel bot commented Jan 30, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
apps-backend ⬜️ Ignored (Inspect) Visit Preview Jan 30, 2025 2:32pm
apps-ui-kit ⬜️ Ignored (Inspect) Visit Preview Jan 30, 2025 2:32pm
rebased-explorer ⬜️ Ignored (Inspect) Visit Preview Jan 30, 2025 2:32pm
wallet-dashboard ⬜️ Ignored (Inspect) Visit Preview Jan 30, 2025 2:32pm

@iota-ci iota-ci added core-protocol node Issues related to the Core Node team labels Jan 30, 2025
@daria305 daria305 force-pushed the core-node/feat/admin-console-tracing branch from cacc678 to 32870f9 Compare January 30, 2025 10:18
@daria305 daria305 requested a review from muXxer January 30, 2025 14:31
@muXxer muXxer merged commit d2cd586 into develop Jan 30, 2025
41 checks passed
@muXxer muXxer deleted the core-node/feat/admin-console-tracing branch January 30, 2025 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-protocol node Issues related to the Core Node team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants