Agent-readable docs index: /llms.txt. Full docs in one file: /llms-full.txt. Download /docs.zip to grep all markdown files locally.

Investigate workspace traces

Connect your MCP client to https://YOUR_HALFSPAN_API_HOST/mcp/observability over HTTP. Send a Halfspan workspace API key with traces:read in the Authorization bearer header. Use the existing client configuration for remote MCP connections with this endpoint and your scoped API key.
ToolInputsResult
search_tracesOptional query, startTime, endTimeUp to 32 span, log or signal matches with session/event links
get_tracesession, optional event or cursorChronological events with span parents, tool calls, signal evidence, actor links and swarm ID. Pass nextCursor to continue.
list_issuesOptional project, environment, startTime, endTimeUp to 20 issues with counts, state, latest occurrence and links
get_issue_evidenceissue, optional project, environment, startTime, endTimeRetained occurrence references and structured observations
query_metricsOptional query, groupBy, startTime, endTimeTime buckets, latency percentiles, token usage and spend
export_eval_casesession, optional eventDownloadable JSON with metadata, ordered tool names and source reference
Dates use RFC 3339. Supply both ends of a custom time window, up to 90 days. Try status:error tool:lookup or model:gpt-4.1-mini duration:>5000. Each call checks the workspace associated with the credential and current visibility of its evidence. Captured log excerpts require redacted capture. Returning captured OTLP prompts or outputs also requires the workspace’s server-side capture allowlist.
The dashboard's workspace assistant retains its conversation and uses a dedicated read-only project tool set. Incident triage continues to use the investigation tools above. Configure HALFSPAN_TRACE_CHAT_MODEL and OPENROUTER_API_KEY on the API and monitor worker for incident triage.
Use Deep Search in workspace search to search the same investigation index. Text search works immediately after analytics projection. For hybrid text and vector search, configure an OpenAI-compatible embeddings endpoint that returns 384 dimensions. Set HALFSPAN_EMBEDDINGS_URL, HALFSPAN_EMBEDDINGS_MODEL and HALFSPAN_EMBEDDINGS_TENANTS (a JSON array of workspace IDs) on the API and worker. Set HALFSPAN_EMBEDDINGS_TOKEN if the endpoint requires it. Eligible metadata and captured, redacted excerpts are sent to that configured provider.
Run halfspan-api embeddings-worker WORKSPACE_ID alongside the API. In Compose, set HALFSPAN_EMBEDDINGS_WORKSPACE and run docker compose --profile embeddings up -d embeddings-worker. The worker checkpoints indexed chunks on each archive. Free-text searches combine text and vector ranks. Faceted searches use exact predicates.

Slack

Install a Slack App destination. Configure the Events API and Interactivity request URL as https://YOUR_HALFSPAN_API_HOST/v1/integrations/slack/events and subscribe to app_mention. Set the app signing secret in HALFSPAN_SLACK_SIGNING_SECRET on the API and monitor worker. Mention the bot inside a delivered incident alert's thread to receive an investigation scoped to that alert.
Configure HALFSPAN_SLACK_OPERATORS on the API as a JSON map of Halfspan workspace IDs to authorized Slack user IDs. These users can acknowledge or resolve incidents and create issues from alert buttons. For issue creation, configure HALFSPAN_SLACK_ISSUE_TARGETS on the worker as a private JSON map keyed by workspace. GitHub uses fields GitHubRepo (owner/repository) and GitHubToken. Linear uses LinearTeam (team UUID) and LinearToken (OAuth access token). Action receipts suppress duplicate deliveries, including retried button clicks.

Local Workshop

Run span workshop and open http://localhost:4390. Use workshop as the token when a local SDK requires a credential. Send native SDK batches to this origin or point your OTLP/HTTP exporter at http://localhost:4318. Select an event in the live waterfall to inspect it. The receiver keeps up to 64 MiB of events in memory for its lifetime.
Run the MCP client with command span and arguments ["workshop","--stdio"], or connect over HTTP to http://localhost:4390/mcp/observability. Both modes read the same local sessions through search_traces and get_trace. Use span workshop --help to change the loopback ports.