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

Remote Debug #838

Closed
jrcheli opened this issue Mar 10, 2022 · 1 comment
Closed

Remote Debug #838

jrcheli opened this issue Mar 10, 2022 · 1 comment
Milestone

Comments

@jrcheli
Copy link
Contributor

jrcheli commented Mar 10, 2022

This can be thought of as an epic that potentially has a few very different, separable sub-tasks:

  1. the library logging output is currently "just a bunch of unparseable text". I think it'd be a welcome improvement to wrap these in a json message, with fields like pid, severity, proc name, timestamp that are distinct from the text of the message.
  2. Right now the SCOPE_LOG_LEVEL isn't fine-grained enough to be able to look at specific problems. We're in a situation where we either have too much debugging or not enough. Consider adding flags to enable/disable categories of logs, maybe? For example, maybe one category for "wrap.c what interposed functions are getting called" another for "hooking/attach", maybe another for "protocol debugging", etc.
  3. When fatal signals happen (segfaults, for example), we may want to add a "debugging capture" thing to our library so can capture pertinent info (config files, memory, stack) ala a core-dump. Disabled by default? Enabled by a env var, maybe? IDK.
  4. We currently only have an arcane way of getting debug counters (the results of DBG() statements) out of scoped application... "Dynamic configuration" with SCOPE_CMD_DBG_PATH... There is a fair amount that could be helpful: switch this output to json, create this output on a remote command too ("GetDiag").
  5. Add a self-diagnostic capability to scope? cli or ldscope option?
scope self-test
# Using /etc/scope/scope.yml
## testing the TCP transport path
### Events Received
### Metrics Received
### Logs Received
@ledbit ledbit added this to the Backlog milestone Mar 16, 2022
@seanvaleo
Copy link
Collaborator

Superceded by #1279 and PR #1289

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

3 participants