Context configuration

Configure workflows, tags, environments, repositories, and tools so Incidents, Experiments, and neatlogs AI stay grounded in how your application works.

Incidents and Experiments are only as accurate as the context attached to your project and traces. When neatlogs knows which workflow produced a trace, which environment it ran in, which GitHub repository owns the code, and which tools you connected, investigations cite the right files and comparisons isolate the exact change you want to test.

Four context layers grounding every outcome
Scoped by project & role
1Telemetry structure

Engineering & coding agents (SDKs)

workflow_name per agentenvironment & release tagssession_id & end_user_id
2Project & workflow boundaries

Project Admin / Org Admin

One project per app/envAPI keysDefault workflows
3Code & external tools

Org Admin + each teammate

GitHub repos (Shared / Strict)Slack Team channelLinear / Jira & Tools & MCP
4Prompts & quality baselines

Project Member / Admin

Managed promptsFrozen datasetsCalibrated detections & Evals

Incidents

Root-cause citations tied to exact workflows and repos.

Experiments

Clean A vs. B isolation across frozen cases and judges.

neatlogs AI answers

Scoped read access across traces, issues, and code.

The four layers of project context

LayerWhat it configuresWhere to set itWho owns it
1. Telemetry structureworkflow_name, environment / release tags, session_id, and end_user_id on incoming tracesSDK initialization and span attributes (Workflow name, Tags, Sessions)Engineering / coding agents during instrumentation
2. Project & workflow boundariesSeparate projects per application or environment, API keys, and active workflowsSettings → Project (Projects and workflows)Project Admin / Org Admin
3. Code & external tool contextMapped GitHub repositories (Shared vs. Strict access policy, optional PR writes), Slack/Linear/Jira connections, and personal Tools & MCP accountsSettings → Organization → Integrations & Settings → Account → Tools & MCP (Integrations, Tools & MCP)Org Admin (GitHub App / Slack) + each teammate (Tools & MCP)
4. Prompts & quality baselinesManaged prompt versions/labels, saved datasets, and calibrated detections/Evalsimprove → prompts, improve → datasets, detections, evalsProject Member / Project Admin
Note

Dedicated Project Context document (workspace rollout): Workspaces with Project Context enabled also see Settings → Project → Context, where project members can maintain a shared project context document and select repository files directly. If that page is not visible in your workspace yet, configure the four context layers above so Incidents and Experiments already have clean workflow, repository, and tool boundaries.

Set up context so Incidents and Experiments work cleanly

  1. Give every distinct agent its own workflow_name. Never mix a support chatbot and an internal batch worker under one workflow name. Both the Incidents board and Experiments filter and group by workflow. See Multiple workflows in one codebase.
  2. Tag every deployment and variant. Attach environment (production, staging) and version/prompt tags (prompt-v3, model-sonnet) so incidents do not mix staging noise into production, and Evals/Experiments can isolate baseline vs. candidate traffic. See Tags.
  3. Map the right GitHub repositories to the project. Open Settings → Organization → Integrations → GitHub, map only the repositories that belong to the selected project, and choose Shared or Strict access policy. Turn on Allow pull request writes only for repositories where cloud handoffs may open PRs.
  4. Connect personal read-only tools for investigations. Under Settings → Account → Tools & MCP, connect your own GitHub, Linear, Slack, or Notion accounts so neatlogs AI can look up tickets, runbooks, and threads with your permissions.
  5. Configure a Slack Team channel for incident updates. Under Settings → Organization → Integrations → Slack, choose a Team channel so incident lifecycle alerts and daily digests reach the owning team.

Humans vs. coding agents: context responsibilities

Context itemCoding agent (SDK / CLI / MCP)Human (Dashboard Settings)
workflow_name, tags, sessions, end-user IDsAdds and validates instrumentation via Agent Skills and neatlogs doctor.Approves naming conventions and environment separation.
Project selection (x-project-id / --project)Discovers projects via neatlogs projects list and passes --project explicitly on every command.Creates projects and grants project/service-account roles.
GitHub repository mapping & PR write policyReads mapped repositories during investigations or local fixes.Installs the GitHub App, maps repos per project, and toggles PR write permissions.
Tools & MCP / Slack / Model provider keysUses configured providers and read-only tools during chat or evaluations.Authorizes OAuth connections and stores organization/project AI provider keys.

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.