Google Cloud Observability 為 Go 應用程式提供監控、記錄和診斷功能。
下列 Google Cloud Observability 服務提供 Go 程式庫:
Error Reporting
Go 適用的 Error Reporting 會匯總並顯示執行中 Go 應用程式產生的錯誤。如要開始使用 Error Reporting,請參閱「檢測 Go 應用程式以使用 Error Reporting」。
Cloud Logging
Go 適用的 Cloud Logging 可讓您儲存、搜尋、分析、監控 Go 應用程式中的記錄資料和事件,並接收相關警告。我們提供 Go 適用的 Cloud 用戶端程式庫,並支援標準程式庫記錄器。如要開始使用 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,請參閱 Trace 說明文件中的 Go 檢測範例。