Skip to main content

Spaces Router Traces

The Spaces Router uses Envoy as a reverse proxy to route traffic to control planes. Envoy generates distributed traces through OpenTelemetry integration, providing end-to-end visibility into request flow across the system.

For common tracing configuration, see the distributed tracing overview.

Overview

The router implements distributed tracing using service.name: spaces-router

Custom tags

The router adds custom tags to every span to enable filtering and grouping by control plane. These are in addition to standard HTTP span attributes:

TagSourceDescriptionExample
controlplane.idx-upbound-mxp-id headerControl plane UUIDb2b37aaa-ee55-492c-ba0c-4d561a6325fa
controlplane.namex-upbound-mxp-host headerInternal vcluster hostnamevcluster.mxp-b2b37aaa-ee55-...
hostcluster.idx-upbound-hostcluster-id headerHost cluster identifier (when present)a1b2c3d4-e5f6-7890-abcd-...

These tags enable queries like:

  • "Show me all slow requests to control plane X"
  • "Find errors for control planes in host cluster Y"
  • "Trace a request across multiple control planes"

Envoy-specific attributes

The router includes additional Envoy-specific attributes:

AttributeDescriptionExample
upstream_clusterTarget cluster namectp-b2b37aaa-...-api-cluster
response_flagsEnvoy response flags- (none), UH (no healthy upstream)
node_idEnvoy node identifiermxe-router
componentEnvoy componentproxy
request_sizeRequest body size in bytes0, 1234
response_sizeResponse body size in bytes1827