What data is sent to the OnCall debugging service
The service receives:- Your questions: text you type into the AI chat input.
- Logs (when provided):
- Recent log chunks included automatically (for example, the last 50 lines for the first query).
- Any additional logs you paste or explicitly send.
- Tool results (when allowed):
- Outputs of local tools (
read_file,grep_search,read_logs,tail_logs,grep_logs,get_recent_errors) when the CLI haslogs_available/code_availableset totrue. - These results are stored temporarily in Redis with a short TTL so the debugging graph can retrieve them.
- Outputs of local tools (
- Architecture summary:
- High‑level description of services in your project cluster (project
id, service names/descriptions, flags forlogs_available/code_available).
- High‑level description of services in your project cluster (project
Controlling data shared with the AI
You can control data sharing at multiple levels:- Per‑service flags in
oncall.yaml:- Set
code_available: falseto prevent any code from being read or sent via tools for that service. - Set
logs_available: falseto prevent automated log tools; AI will then only see logs that you paste or explicitly include in your question.
- Set
- Environment separation:
- Use more permissive flags in development (full code + logs) and stricter flags in production (log‑only, or even log‑disabled for highly sensitive services).
- Manual redaction:
- Avoid pasting secrets or highly sensitive data into chat.
- When sharing logs manually, you can redact or trim them before sending.
logs_available and code_available are false, the service only processes:
- Your natural‑language questions.
- Any text you explicitly paste or type into chat.
Token usage and dashboard
The OnCall dashboard shows:- Current usage for your API key (for example,
230757 / 1000000tokens). - Total tokens consumed.
- Token usage over time, visualized by date.
- Track how much your key is being used across sessions.
- Identify spikes in usage that may correspond to heavy debugging sessions or new team members.
- Decide when to rotate keys or adjust how you use the CLI.
~/.oncall/config, so using separate keys per environment or per team can make cost monitoring and attribution easier.