A service map is a graph that shows the services of an application as nodes and the calls between them as edges, typically enriched with request rate, error rate and latency. Modern service maps are generated automatically from distributed traces, network flows or service mesh telemetry and update as the architecture changes.
What is a service map?
A service map, also called service graph or dependency map, visualizes how the components of a distributed system talk to each other. Each node is a service, database, queue or external API; each edge is a dependency, for example "checkout calls payment over HTTP". On top of this structure, the map shows health data such as throughput, error rate and latency per node and per edge.
In a monolith, the call graph lives inside one process. In microservices architectures with dozens or hundreds of services, nobody keeps the full picture in their head. Architecture diagrams in wikis age within weeks. A service map generated from live telemetry shows what is actually running, not what was planned.
How service maps are built
There are three common data sources:
- Distributed traces. Every span carries the service name, and parent-child relationships between client and server spans reveal which service called which. Aggregated over many traces, these pairs form the edges of the map. This requires working context propagation across all hops.
- Network data. eBPF-based agents or flow logs observe TCP connections between processes and hosts. This also covers services without instrumentation, but without application-level detail such as endpoint names.
- Service mesh telemetry. In a service mesh, sidecar or node proxies report every request between workloads with source, destination and response code.
In the OpenTelemetry ecosystem, the Collector's service graph connector derives edge metrics such as traces_service_graph_request_total from spans, so maps can be built from metrics even when only a sample of traces is stored.
What a good service map shows
- Nodes for services, databases, caches, message brokers and third-party APIs, grouped by environment, namespace or team.
- Edges with direction, protocol and RED metrics: rate, errors and duration of the calls between two nodes.
- Health status: color or badges for open alerts, SLO violations or recent deployments.
- Infrastructure context: which pods, hosts or cloud resources run each service.
- Time travel: the map as it was at a given time, to see whether a new dependency appeared before an incident.
Use cases
Incident triage and root cause analysis
When a frontend reports errors, the map shows whether the problem originates there or several hops downstream. Following the red edges usually leads to the service where errors start, which speeds up root cause analysis considerably.
Change and impact analysis
Before deprecating an API or migrating a database, the map lists every consumer. After a deployment, a new edge or a sudden change in call volume is visible immediately.
Architecture review
Service maps expose circular dependencies, chatty services that call each other hundreds of times per request, and single points of failure that many paths depend on.
Onboarding and ownership
New team members understand the system faster, and combined with a service catalog every node links to its owner, runbook and repository.
Limitations and pitfalls
- Gaps from missing instrumentation. A service that does not propagate context breaks the chain and makes downstream calls appear as separate roots.
- Inconsistent service names. If
service.namediffers between environments or versions, one service shows up as several nodes. Follow the OpenTelemetry semantic conventions. - Visual overload. Large maps need filters by namespace, team or criticality, and a focus mode around one service.
- Sampling. Rare dependencies may be missing if maps are built only from sampled traces; edge metrics computed before sampling avoid this.
Getting started with a service map
A useful service map depends more on data quality than on visualization. Start with these steps:
- Instrument the entry points first: API gateways, frontends and the busiest backend services, ideally with OpenTelemetry auto-instrumentation.
- Standardize resource attributes such as
service.name,service.namespaceanddeployment.environment.nameso nodes are named and grouped consistently. - Close propagation gaps across queues, proxies and batch jobs by injecting and extracting trace context in message headers.
- Record client spans for databases and external APIs, so these dependencies appear as their own nodes even though they are not instrumented themselves.
- Review the map with each team: unexpected edges are often the first finding, and owners can confirm or correct them.
How Obseria helps
Obseria TopoGraph builds the service map automatically from OpenTelemetry traces, Kubernetes metadata and infrastructure data, without manual configuration. Every edge carries rate, errors and latency, and every node links to traces, logs and the owning team in the service catalog. Obseria Intelligence uses this topology to follow failures along dependencies and identify the likely root cause. Start with distributed tracing to populate the map.