
Trace debugging
Follows one trace ID across services in Graylog to find where a request failed
Trace debugging is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 6
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Trace debugging
This skill guides an agent through investigating a single request by its trace ID in Graylog logs. It walks through pulling every log tagged with the ID over a time window, locating the first error or fatal entry, and noting latency gaps that hint at a hung dependency.
For each error span the agent pulls neighboring log lines from the same pod, since the real cause often sits a few seconds before the error message. It then assembles a timeline covering the originating service, trace duration, error order and whether the failure started downstream or at the entry point. When a trace is very large, the skill tells the agent to hand the work to a separate analyzer subagent instead of loading hundreds of raw lines.
The workflow relies on the trace_request and get_surrounding_logs tools exposed by the companion Graylog MCP server. The skill also covers common pitfalls such as overly narrow time windows, log lines missing the trace ID, reused IDs and clock skew between hosts.
When your agent uses it
Use when investigating a specific trace_id — following a single request across services to understand where it failed, hung, or behaved unexpectedly. Triggers on "trace_id", "follow this request", "distributed trace", "trace across services", "what happened to request X".
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (3 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the graylog-log-search plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add Pranavj17/mcp-server-graylog
/plugin install graylog-log-search@pranavj17Or copy only this skill to ~/.claude/skills/trace-debugging:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Pranavj17/mcp-server-graylog.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/trace-debugging &&
cp -R "$tmp/skills/trace-debugging" ~/.claude/skills/trace-debugging &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/trace-debugging inside it instead.
Copy the skill folder to ~/.agents/skills/trace-debugging to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Pranavj17/mcp-server-graylog.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/trace-debugging &&
cp -R "$tmp/skills/trace-debugging" ~/.agents/skills/trace-debugging &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/trace-debugging inside it instead.
Copy the skill folder to ~/.cursor/skills/trace-debugging to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Pranavj17/mcp-server-graylog.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/trace-debugging &&
cp -R "$tmp/skills/trace-debugging" ~/.cursor/skills/trace-debugging &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/trace-debugging inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/Pranavj17/mcp-server-graylog.git --path skills/trace-debuggingOr copy the folder to ~/.gemini/skills/trace-debugging yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/trace-debugging:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Pranavj17/mcp-server-graylog.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/trace-debugging &&
cp -R "$tmp/skills/trace-debugging" ~/.copilot/skills/trace-debugging &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/trace-debugging inside it instead.
Get the folder:
git clone --depth 1 https://github.com/Pranavj17/mcp-server-graylog.gitThen copy mcp-server-graylog/skills/trace-debugging into your agent's skills folder as trace-debugging. Agents that support SKILL.md read one folder per skill.
What it does
- Trace pulling
- Retrieves all Graylog logs tagged with a given trace ID within a chosen time window.
- Failure span detection
- Locates the first error or fatal entry and flags latency gaps between spans.
- Surrounding context lookup
- Fetches nearby same-pod log lines to find the likely root cause before the error.
- Timeline assembly
- Builds a chronological summary of error spans and how the failure propagated.
- Large trace handling
- Switches to a subagent for traces with many logs or spanning many services.
- Common pitfall guidance
- Covers narrow windows, untagged log lines, reused IDs and clock skew.
Good for
- Find out where a specific request failed across microservices
- Explain why a request with a given trace ID hung
- Summarize the error chain for a trace ID copied from a dashboard
- Identify the root-cause log line before a timeout error
- Check how many downstream services were affected by one failed request
Trace debugging FAQ
When does Trace debugging trigger?
It triggers when you mention a trace_id, ask to follow a request, refer to a distributed trace, or ask what happened to a specific request.
What does Trace debugging need to run?
It expects the Graylog trace_request and get_surrounding_logs tools, which the companion Graylog MCP server provides, along with a trace ID.
What does Trace debugging change in the project?
It only guides investigation and returns a synthesis to the user; it does not modify code or logs.
What if the trace is very large?
The skill says to dispatch the graylog-trace-analyzer subagent when there are over 200 logs or more than five services.
How do I install Trace debugging in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/trace-debugging to use it in all your projects, or to .claude/skills/trace-debugging in one project. Or install the graylog-log-search plugin, which includes it: /plugin marketplace add Pranavj17/mcp-server-graylog, then /plugin install graylog-log-search@pranavj17.
Does Trace debugging run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Trace debugging?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Trace debugging?
The closest alternatives to Trace debugging are Graylog, Incident triage, Troubleshooting, Debug ingestion and Trace the flow.
Where this comes from
- Description: from the skill's own SKILL.md.
More from Pranavj17/mcp-server-graylog

Lets your agent search and trace production logs in Graylog via its MCP server
- Open source
- 6 GitHub stars
- Developer tools

Guides an agent through localizing an active incident to a service and error pattern
- Open source
- 6 GitHub stars
- Developer tools

Diagnoses failing Graylog MCP tool calls across connectivity, auth and query issues
- Open source
- 6 GitHub stars
- Developer tools


