A financial services organization hosts a hybrid banking solution across Google Kubernetes Engine (GKE) and Cloud Run. During operational incidents, engineering teams struggle to correlate distributed trace contexts with application logs and performance metrics across service boundaries. The team needs to establish a unified observability architecture that propagates trace identifiers into Cloud Logging, aggregates metrics into Cloud Monitoring, and prevents high-cardinality metric labels from causing unexpected telemetry costs. Which architecture should the Cloud Architect recommend?
- Deploy the OpenTelemetry Collector to collect spans, metrics, and structured logs, configure W3C Trace Context propagation to embed trace IDs into log payloads, and aggregate high-cardinality attributes using OpenTelemetry processors before emitting data to Google Cloud Observability.Answer
- BApply a broad log exclusion filter in Cloud Logging that drops all application telemetry and INFO logs across all projects, relying exclusively on basic GCP load balancer metrics to track operational health.
- CGrant the Project Owner primitive IAM role to the OpenTelemetry Collector service account across all GCP projects to grant unrestricted privileges for metric descriptor creation and trace span ingestion.
- DConfigure the OpenTelemetry Collector to push raw trace spans and metrics directly to an external public IP endpoint, relying exclusively on IAM policies to prevent cross-project data exfiltration.
Answer
Deploy the OpenTelemetry Collector to collect spans, metrics, and structured logs, configure W3C Trace Context propagation to embed trace IDs into log payloads, and aggregate high-cardinality attributes using OpenTelemetry processors before emitting data to Google Cloud Observability.
Deploying the OpenTelemetry Collector with W3C Trace Context propagation enables automatic correlation of trace IDs with Cloud Logging entries across microservices. Utilizing OpenTelemetry batch and filter processors controls metric label cardinality before sending telemetry to Google Cloud Observability, balancing observability depth with cost control.
Step-by-Step Solution
Key Concept
Unified Observability and Telemetry Integration via OpenTelemetry and Cloud Observability