> ## Documentation Index
> Fetch the complete documentation index at: https://docs.levelrail.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Service map

> See which apps call which, with call counts, error share and p95 latency taken from stored traces.

The service map lists the calls between your apps, built from the trace spans Levelrail already stores. Open **Network**, then **Service map**, or run the CLI.

```bash theme={"dark"}
levelrail-cli service-map --window 6h
levelrail-cli service-map --json
```

The API is `GET /api/v1/service-map?window=1h`. On the dashboard the chosen window is kept in the page URL.

## When an edge appears

An edge from app A to app B needs all of these:

1. Both apps send traces with their own ingest key (see [OTLP ingest](https://docs.levelrail.com/otlp-ingest.md)).
2. A passes the trace context to B, for example the W3C `traceparent` header. Without propagated context there is no edge.
3. A records a client or producer span, and B records a server or consumer span whose parent is that span.

An app is identified only by the ingest key that wrote the span. `service.name` and other span attributes never decide it.

A caller that passes its trace context to an app shares the ids needed to claim that parent. Treat an edge as evidence from instrumented apps, not as a network access record.

## What the numbers mean

| Field | Meaning |
| - | - |
| Calls | Distinct caller spans that reached the callee. Several callee spans with one parent count once |
| Error share | Calls where the caller span or a callee span has an error status |
| p95 latency | 95th percentile of the caller span duration |
| State | `errors` when any call failed, `ok` when none did, `unknown` when none did but the result was truncated |

An empty map is not a health signal. It can mean no traffic, no tracing or no propagated context.

## Access

Only apps you can read are queried. A call to or from an app you cannot read is not shown, and it does not affect counts or the truncation flag.

## Limits

These [runtime settings](https://docs.levelrail.com/runtime-settings.md) apply without a restart:

| Setting | Default | Meaning |
| - | - | - |
| `observability.service_map_max_window_minutes` | 1440 | Longest window a request may ask for |
| `observability.service_map_max_spans` | 50000 | Newest inbound spans read per request. A result that hits it is marked truncated |
| `observability.service_map_timeout_seconds` | 10 | Query timeout |

Spans older than the trace retention window are gone, whatever window you ask for.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.