Google Cloud · Management and Operations

Cloud Trace

Distributed tracing that shows how long each part of a request takes across services, to find latency bottlenecks.

On the Google Cloud Associate Cloud Engineer exam listMonitoring and observability

What it is and what problem it solves

Cloud Trace collects traces: the path of a request through services, broken into timed spans. Applications send spans through OpenTelemetry (or automatic instrumentation on some platforms), and Trace shows latency distributions, slow requests and which downstream call or database query took the time. It links with Cloud Logging entries that carry the trace ID.

When to use it

  • Investigating latency in microservices.
  • Comparing performance before and after a release.
  • Finding slow database queries or external calls inside a request.

When to avoid it

  • Aggregate health alerting and dashboards across a fleet: Cloud Monitoring.
  • Full-text search through log messages: Cloud Logging.
  • Profiling CPU and memory inside one process: Cloud Profiler.

Cost model

What you pay for

  • Spans ingested beyond a free allotment.

Where it is cost-efficient

Sampled traces that still capture slow requests.

Where costs grow

Tracing every request at high volume.

Cost controls and common surprises

Sampling rates and tail-based sampling in OpenTelemetry collectors.

Prices differ by Region and change over time; see the pricing page linked under Sources.

Security

Controls the service provides

IAM controls who can view traces.

What you configure

Avoid putting personal data in span attributes.

Exam cues and common confusions

  • Find which service in a request path is slow: Cloud Trace.
  • Instrument applications: OpenTelemetry.

Related

Services, comparisons and patterns

Sources

Independent study material, not affiliated with or endorsed by Google. Google Cloud and service names are trademarks of Google LLC.

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake