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

add debug API endpoint and signal listener #138

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

kolbe
Copy link
Collaborator

@kolbe kolbe commented Oct 10, 2024

This PR adds 2 things:

  1. a new /debug API endpoint which toggles blip.Debugging. it returns a string telling you whether it's been enabled or disabled.
  2. a signal listener on SIGUSR1 that toggles blip.Debugging. this will write to stderr whether it's turned debugging on or off.

I figured it might be helpful to support both of these. In a k8s context, it might be more simple to send a signal to the process running in the container than to figure out where its API endpoint is listening.

@kolbe kolbe closed this Nov 21, 2024
@kolbe kolbe reopened this Nov 21, 2024
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