> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-3a82795f.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Service maps

> Visualize service dependencies and request flow with ClickStack service maps.

export const Image = ({img, alt, size}) => {
  return <Frame>
      <img src={img} alt={alt} />
    </Frame>;
};

export const galaxyOnClick = eventName => () => {
  try {
    if (typeof window !== "undefined" && window.galaxy && eventName) {
      window.galaxy.track(eventName, {
        interaction: "click"
      });
    }
  } catch (e) {}
};

export const BetaBadge = ({link, galaxyTrack, galaxyEvent}) => {
  if (link) {
    return <a href={link} target="_blank" rel="noopener noreferrer" className="betaBadge" onClick={galaxyTrack && galaxyEvent ? galaxyOnClick(galaxyEvent) : undefined}>
                <Icon />
                <span>Beta</span>
            </a>;
  }
  return <div className="betaBadge">
            <Icon />
            <span>
                Beta feature. 
                <u>
                    <a href="/docs/beta-and-experimental-features#beta-features">
                        Learn more.
                    </a>
                </u>
            </span>
        </div>;
};

Service maps visualize how your services interact. ClickStack builds the graph by matching client spans (outgoing requests) with server spans (incoming requests) within the same trace, reconstructing the request path between services.

Click **Service Map** in the left navigation panel to open the full graph. Services appear once you're [ingesting trace data](/clickstack/ingesting-data) with OpenTelemetry.

<Image img="https://mintcdn.com/private-7c7dfe99-mintlify-3a82795f/v1-2Yt8HcdseADex/images/clickstack/service-maps/service-map-overview.png?fit=max&auto=format&n=v1-2Yt8HcdseADex&q=85&s=fdb0f5b4edafeae26bcc82f5f34954e7" alt="Service map showing service nodes and request flow between them" size="lg" width="1999" height="981" data-path="images/clickstack/service-maps/service-map-overview.png" />

<h2 id="exploring-the-service-map">
  Exploring the service map
</h2>

Each node represents a service, identified by the `service.name` resource attribute. Edges (dashed lines) connect services where a client span in one matches a server span in another. Node size reflects relative traffic volume, and red nodes indicate services with errors in the selected time range.

The toolbar above the map lets you filter and adjust the view.

**Source selector** — filter the map to a specific trace source (e.g. "ClickPy Traces").

<Image img="https://mintcdn.com/private-7c7dfe99-mintlify-3a82795f/v1-2Yt8HcdseADex/images/clickstack/service-maps/source-selector.png?fit=max&auto=format&n=v1-2Yt8HcdseADex&q=85&s=766c0009dcb6f01d8decf2dacdab3050" alt="Source selector highlighted in the service map toolbar" size="lg" width="3838" height="138" data-path="images/clickstack/service-maps/source-selector.png" />

**Sampling slider** — adjust the sampling rate to balance performance and accuracy. Lower rates load faster on high-volume clusters.

<Image img="https://mintcdn.com/private-7c7dfe99-mintlify-3a82795f/v1-2Yt8HcdseADex/images/clickstack/service-maps/sampling.png?fit=max&auto=format&n=v1-2Yt8HcdseADex&q=85&s=c03a74cecc703b73c4f71e1b675e8128" alt="Sampling slider highlighted in the service map toolbar" size="lg" width="3838" height="138" data-path="images/clickstack/service-maps/sampling.png" />

**Date range picker** — set the time window for the trace data used to build the map.

<Image img="https://mintcdn.com/private-7c7dfe99-mintlify-3a82795f/v1-2Yt8HcdseADex/images/clickstack/service-maps/date-selector.png?fit=max&auto=format&n=v1-2Yt8HcdseADex&q=85&s=19d2e23654581a092c3f55473e3b6145" alt="Date range picker highlighted in the service map toolbar" size="lg" width="3838" height="138" data-path="images/clickstack/service-maps/date-selector.png" />

Use the **+/-** buttons in the bottom-left corner of the map or scroll to zoom in and out.

<h2 id="trace-level-service-maps">
  Trace-level service maps
</h2>

When you inspect an individual trace, a focused service map shows how that specific request moved between services. This lets you see the topology for a single request without leaving the trace waterfall.

<Frame>
  <video src="https://mintcdn.com/private-7c7dfe99-mintlify-3a82795f/v1-2Yt8HcdseADex/images/clickstack/service-maps/service-map-demo.mp4?fit=max&auto=format&n=v1-2Yt8HcdseADex&q=85&s=d16781cd9fe36ba3b0abca69e89c9622" autoPlay loop muted playsInline width="100%" data-path="images/clickstack/service-maps/service-map-demo.mp4" />
</Frame>
