# SpanSlice > SpanSlice runs rules inside your services that decide which OpenTelemetry spans reach your observability backend, and in what shape. Its API and MCP server let scripts and agents read and change those rules. The API is at https://api.spanslice.com/v1 and the MCP server at https://api.spanslice.com/mcp (streamable HTTP). Both take an access token as `Authorization: Bearer ss_pat_…` or `ss_org_…`, made in the app under Settings › Access tokens. ## Getting started - [Install the Node SDK](https://docs.spanslice.com/start/install/): Add the spanslice package to a Node service and connect it to a SpanSlice environment. - [Keep your NodeSDK setup](https://docs.spanslice.com/start/node-sdk/): Add SpanSlice rules to a service that already starts OpenTelemetry with @opentelemetry/sdk-node, without changing its options. - [Write your first rule](https://docs.spanslice.com/start/first-rule/): Drop health-check traces, and see how a rule reads. ## Concepts - [How rules run](https://docs.spanslice.com/concepts/rules/): Targets, stages, conditions, rule order, and how a trace is held until its decisions are made. - [Actions](https://docs.spanslice.com/concepts/actions/): Every action in the rule editor, what it does, and where it can be used. - [Sampling](https://docs.spanslice.com/concepts/sampling/): Set Sample Rate keeps 1 in N traces; Set Span Sample Rate keeps 1 in N of a span inside a kept trace. - [Synchronous spans](https://docs.spanslice.com/concepts/sync-spans/): Spans that start and end without an await are dropped as they end, unless a keep rule matches. - [Stuck spans](https://docs.spanslice.com/concepts/stuck-spans/): Report spans that stay open too long as "(incomplete)" snapshots, and decide what happens to them. - [Metrics](https://docs.spanslice.com/concepts/metrics/): The four kinds of metric, how Views reshape them before export, and span metrics built from spans. ## API - [Using the API](https://docs.spanslice.com/api/): Read and change SpanSlice projects and rules from scripts and agents, with an access token. - [For agents](https://docs.spanslice.com/api/agents/): Connect an AI agent to SpanSlice over MCP, or point it at the OpenAPI spec. - [Errors](https://docs.spanslice.com/api/errors/): The problem details the SpanSlice API sends when a request fails, and what each code means. - [OpenAPI spec](https://api.spanslice.com/v1/openapi.json): OpenAPI 3.1, with descriptions and examples; no token needed - [MCP server](https://api.spanslice.com/mcp): every operation as a tool, streamable HTTP, same bearer token - [API reference: Account](https://docs.spanslice.com/api/reference/account/): Who a credential acts as. - [API reference: Organizations](https://docs.spanslice.com/api/reference/organizations/): Organizations you belong to. - [API reference: Projects](https://docs.spanslice.com/api/reference/projects/): Projects, their environments and their services. - [API reference: Rules](https://docs.spanslice.com/api/reference/rules/): Span rules: conditions on a span and the actions to take when it matches. They are what SpanSlice runs in your SDKs. - [API reference: Commits](https://docs.spanslice.com/api/reference/commits/): Environments that require commit run their latest commit. Changes wait as pending changes until someone commits them. ## Optional - [Full text](https://docs.spanslice.com/llms-full.txt): every page above in one file