Skip to main content
Cloud / Google Cloud / Products / Cloud Trace - Distributed Tracing for Microservices

Cloud Trace - Distributed Tracing for Microservices

Cloud Trace (Google Cloud) analyzes latency in distributed systems, visualizes request paths across services, and identifies bottlenecks.

Management
Pricing Model Free up to 2.5M spans/month, then $0.20 per million spans
Availability Global
Data Sovereignty Trace data stored in the selected region
Reliability SLA as published by the provider (see official SLA page) SLA

Cloud Trace visualizes request paths through distributed systems. Identify latency bottlenecks in microservices architectures and understand service dependencies.

What is Cloud Trace?

Cloud Trace is Google’s distributed tracing service for performance analysis. A trace follows a request through all involved services: from API gateway through backend services to the database. You see which service takes how long.

With latency problems, Cloud Trace shows which service call causes the bottleneck. Instead of searching through logs, you see the request chain visually.

Core Features

  • Trace Visualization: Waterfall view of all service calls
  • Latency Analysis: P50, P95, P99 latency distributions
  • Service Dependencies: Automatic service map
  • Sampling: Automatic or configured sampling
  • OpenTelemetry: Recommended, vendor-neutral standard for instrumentation

Trace Anatomy

A trace consists of spans. Each span represents an operation:

Request (Root Span, 450ms)
├── API Gateway (20ms)
├── Auth Service (80ms)
├── Backend Service (300ms)
│   ├── Cache Lookup (5ms) - MISS
│   ├── Database Query (180ms) ← Bottleneck!
│   └── Response Build (15ms)
└── Response Serialization (50ms)

Typical Use Cases

Latency Debugging

An API endpoint is suddenly slow. Cloud Trace shows that the database call takes noticeably longer than normal. Without tracing, you would have to investigate each service individually.

Service Dependency Mapping

With complex microservices architectures, Cloud Trace shows which services call which others. The service map visualizes these dependencies.

SLO Monitoring

Define SLOs (for example, 99% of requests under 200ms) and monitor compliance. Cloud Trace integrates with Cloud Monitoring for alerting on SLO violations.

Cloud Trace vs. Cloud Profiler vs. Cloud Logging

ToolFocusGranularityUse Case
Cloud TraceRequest latencyService calls“Which service is slow?”
Cloud ProfilerCPU/MemoryFunctions“Which function consumes CPU?”
Cloud LoggingEventsLog entries“What happened?”

Benefits

  • Automatic Instrumentation: Many GCP services send traces automatically
  • OpenTelemetry: Vendor-neutral standard, low lock-in risk
  • Free for Most: 2.5M spans/month included
  • Integrated: Native linkage with Logging and Monitoring

Integration with innFactory

As a certified Google Cloud partner, innFactory supports you with Cloud Trace: OpenTelemetry setup, instrumentation of existing services, and performance optimization based on trace data.

Typical Use Cases

Latency analysis
Performance debugging
Service dependency mapping
SLO monitoring

Technical Specifications

Integration Cloud Logging, Cloud Monitoring, Error Reporting
Protocols OpenTelemetry (recommended), plus Zipkin compatibility; OpenCensus has been archived as a project since 2023 and is increasingly being replaced by OpenTelemetry
Retention 30 days
Sampling Automatic and configurable

Frequently Asked Questions

What is Cloud Trace?

Cloud Trace is a distributed tracing service that follows request paths through distributed systems. You see how long each service call takes and where bottlenecks occur. Traces visualize the entire chain from API gateway to database.

How does Cloud Trace differ from Cloud Profiler?

Cloud Trace analyzes request latency and shows where time is spent in distributed systems, between services. Cloud Profiler shows which functions within a service consume CPU and memory, within the code. Both complement each other.

How much does Cloud Trace cost?

The first 2.5 million spans per month are free. Beyond that, $0.20 per million spans applies. For most applications, the free quota is sufficient.

What instrumentation does Cloud Trace support?

Cloud Trace supports OpenTelemetry as the recommended standard, as well as Zipkin-compatible traces. OpenCensus, previously also supported, has been archived as a standalone project since 2023; Google recommends OpenTelemetry for new instrumentation. Some GCP services, such as Cloud Run, App Engine, and GKE, send traces automatically.

How long are traces stored?

Traces are stored for 30 days. For longer retention, export the data to BigQuery or Cloud Storage. Sampling reduces data volume for high-frequency applications.

Note: All product information on this page has been compiled with care, but is provided without guarantee and may be outdated or incomplete. Cloud services evolve rapidly — features, pricing, SLAs, and availability change frequently. Authoritative and up-to-date information can only be found on the official product page of Google Cloud (official documentation). This page does not represent an offer by Google Cloud.

Google Cloud Partner

innFactory is a certified Google Cloud Partner. We provide expert consulting, implementation, and managed services.

Google Cloud Partner

Similar Products from Other Clouds

Other cloud providers offer comparable services in this category. As a multi-cloud partner, we help you choose the right solution.

STACKIT

STACKIT Observability - Monitoring & Tracing

STACKIT Observability: Grafana, Prometheus, Thanos, Loki, Tempo from Germany. Metrics, logs, traces. GDPR-compliant.

Pricing Hourly billing based on metrics …
SLA SLA as published by the provider
Compare →
STACKIT

STACKIT Telemetry Router - Audit Log Forwarding

STACKIT Telemetry Router: central collection and forwarding of audit logs in OpenTelemetry format to OTLP targets or S3.

Pricing Pay-per-use
SLA SLA as published by the provider
Compare →
AWS

Amazon Application Recovery Controller: Failover Control

Amazon Application Recovery Controller (ARC) controls failover through zonal shift, routing controls, and Region switch.

Pricing No additional charge for zonal shift and …
SLA SLA per provider (see official SLA page)
Compare →
AWS

AWS AppConfig: Feature Flags and Configuration

AWS AppConfig delivers feature flags and dynamic configuration with validation, controlled rollout, and automatic …

Pricing Pay-as-you-go based on configuration and …
SLA SLA per provider (see official SLA page)
Compare →
AWS

AWS Cloud Control API - Unified Resource APIs

AWS Cloud Control API provides standardized CRUDL APIs for managing AWS and third-party resources from the …

Pricing No additional charge for AWS Cloud …
SLA As stated by the provider; see official documentation
Compare →
AWS

AWS Resilience Hub: Resilience Management

AWS Resilience Hub defines, assesses, and improves the resilience posture of applications against RTO and RPO targets.

Pricing Billed per application or per service …
SLA SLA per provider (see official SLA page)
Compare →

59 comparable products found across other clouds.

Ready to start with Cloud Trace - Distributed Tracing for Microservices?

Our certified Google Cloud experts help you with architecture, integration, and optimization.

Schedule Consultation