Instrument with coding agents

Copy one prompt into the coding agent you already use and let it add neatlogs tracing to your repository.

Use the coding agent you already work in to add neatlogs. Paste the prompt below at the root of your repository in Claude Code, Codex, Cursor, GitHub Copilot, Windsurf, OpenCode, or any agent that can edit files. The agent detects your language and frameworks, installs the matching neatlogs SDK (or sets up direct HTTP or OpenTelemetry export), and adds only tracing.

Set up

  1. Get your project API key. Sign in to the dashboard for your project (US or EU), select the project, and copy its key from Settings → Project → API keys. Set it as NEATLOGS_API_KEY in the shell or .env file your application uses, and don't commit it.
  2. Open your coding agent at the repository root. The prompt only instruments services in or below the directory the agent runs in.
  3. Copy the quick prompt below (or expand the standalone offline prompt if your agent cannot fetch links) and paste it into the agent.
  4. Review the changes. Expect SDK installation, a single initialization near the app's entry point, and tracing wrappers or spans. The agent does not alter application logic or configure detections or alerts.
  5. Run one real entry point and confirm the trace. Trigger a representative request yourself, then open Traces in the dashboard to confirm the run appears with its model and tool steps.

Use this short prompt when your coding agent can read https://docs.neatlogs.com and https://github.com/neatlogs/skills:

Set up neatlogs tracing in this repository without changing application logic:
1. Ask me for my US/EU region and confirm NEATLOGS_API_KEY is available in the environment or .env (never hardcode or commit it).
2. Read https://docs.neatlogs.com/llms-sdk.txt and the matching framework skill in https://github.com/neatlogs/skills (via skill-menu.json), then install the latest neatlogs SDK (or configure HTTP injection / OTLP gRPC if there is no native SDK) and initialize once per entry point with clear workflow names.
3. Run the SDK's `doctor --local` and `doctor --probe` checks (https://docs.neatlogs.com/sdk/doctor), summarize every modified file, and ask me to run one real entry point to verify the trace.

Full standalone prompt

If your coding agent runs in a restricted environment without web access, expand the accordion below and copy the full self-contained instructions:

This sets up access to neatlogs, then uses your coding agent to inspect the project, install the SDK, and configure tracing by hand. No npx @neatlogs/wizard@latest run is required.

Optional next steps: install Agent Skills so your agent keeps instrumenting new code correctly, and connect the MCP server so it can inspect incidents and traces.

Use your first run to investigate a real failure →

On this page

neatlogs
neatlogs

Ask neatlogs AI

Answers grounded in the docs

neatlogs

How can I help?

Ask anything about Incidents, Experiments, tracing, or the neatlogs dashboard.