Google Cloud 為 Go 應用程式提供強大的監控、記錄與診斷功能。
下列 Google Cloud Observability 服務提供 Go 程式庫:
Error Reporting
Go 適用的 Error Reporting 會匯總並顯示執行中的 Go 應用程式所產生的錯誤。如要開始使用 Error Reporting,請參閱「設定 Go 適用的 Error Reporting」。
Cloud Logging
Go 適用的 Cloud Logging 可讓您儲存、搜尋、分析及監控 Go 應用程式中的記錄資料與事件,並發出相關快訊。我們提供 Cloud Logging API 用戶端程式庫,支援標準程式庫記錄器。如要開始使用 Cloud Logging,請參閱「為 Go 設定 Cloud Logging」。
Cloud Monitoring
Go 適用的 Cloud Monitoring 會收集 Go 應用程式的指標、事件和中繼資料。擷取上述資料之後,Cloud Monitoring 會透過資訊主頁、圖表和快訊提供深入分析結果。
如要開始使用 Cloud Monitoring,請參閱 Cloud Monitoring API 適用的 Cloud 用戶端程式庫,瞭解如何安裝及使用 Go 程式庫。
Cloud Trace
Cloud Trace 是Google Cloud 的分散式追蹤系統,可收集 Go 應用程式的延遲資料,並以近乎即時的方式顯示在 Google Cloud 控制台中。如要開始使用 Cloud Trace,請參閱「設定 Go 適用的 Cloud Trace」,並閱讀「Go 適用的分散式追蹤功能」,進行深入分析。