Cloud Logging for Go allows you to store,
search, analyze, monitor, and alert on log data and events in Go
applications. We provide a Cloud Logging API client library with standard
library logger support.
To get started with Cloud Logging, see the
Setting up Cloud Logging for Go.
Cloud Monitoring
Cloud Monitoring for Go collects
metrics, events, and metadata from Go applications.
Cloud Monitoring ingests that data and generates insights via dashboards,
charts, and alerts.
Cloud Trace is a distributed tracing system for
Google Cloud that collects latency data from Go applications
and displays it in near real time in the Google Cloud console. To get started with
Cloud Trace, see
Setting up Cloud Trace for Go and
read Distributed tracing for Go
for further insights.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eGoogle Cloud offers comprehensive monitoring, logging, and diagnostic tools specifically designed for Go applications.\u003c/p\u003e\n"],["\u003cp\u003eGo applications can leverage Google Cloud's Error Reporting to aggregate and display errors, simplifying the debugging process.\u003c/p\u003e\n"],["\u003cp\u003eCloud Logging for Go allows for the storage, searching, analysis, monitoring, and alerting of log data and events, including support for standard library loggers.\u003c/p\u003e\n"],["\u003cp\u003eCloud Monitoring collects metrics, events, and metadata from Go applications, and presents them via dashboards, charts, and alerts.\u003c/p\u003e\n"],["\u003cp\u003eCloud Trace provides distributed tracing capabilities for Go applications, enabling the collection and near real-time display of latency data in the Google Cloud console.\u003c/p\u003e\n"]]],[],null,["# Monitoring and logging for Go\n\nGoogle Cloud provides powerful monitoring, logging, and\ndiagnostics for Go applications.\n\nGo libraries are available for the following Google Cloud Observability\nservices:\n\n- [Error Reporting](#cloud_error_reporting)\n- [Cloud Logging](#cloud_logging)\n- [Cloud Monitoring](#cloud_monitoring)\n- [Cloud Trace](#cloud_trace)\n\nError Reporting\n---------------\n\n[Error Reporting](/error-reporting/docs) for Go\naggregates and displays errors produced in your running Go\napplications. To get started with\nError Reporting, see [Setting up Error Reporting for Go](/error-reporting/docs/setup/go).\n\nCloud Logging\n-------------\n\n[Cloud Logging](/logging/docs) for Go allows you to store,\nsearch, analyze, monitor, and alert on log data and events in Go\napplications. We provide a Cloud Logging API client library with standard\nlibrary logger support.\nTo get started with Cloud Logging, see the\n[Setting up Cloud Logging for Go](/logging/docs/setup/go).\n\nCloud Monitoring\n----------------\n\n[Cloud Monitoring](/monitoring/docs) for Go collects\nmetrics, events, and metadata from Go applications.\nCloud Monitoring ingests that data and generates insights via dashboards,\ncharts, and alerts.\n\nTo get started with Cloud Monitoring,\nsee the [Cloud Client Libraries for the Cloud Monitoring API](/monitoring/docs/reference/libraries)\nfor installation and usage of the Go library.\n\nCloud Trace\n-----------\n\n[Cloud Trace](/trace/docs) is a distributed tracing system for\nGoogle Cloud that collects latency data from Go applications\nand displays it in near real time in the Google Cloud console. To get started with\nCloud Trace, see\n[Setting up Cloud Trace for Go](/trace/docs/setup/go-ot) and\nread [Distributed tracing for Go](https://cloudplatform.googleblog.com/2017/04/distributed-tracing-for-Go.html)\nfor further insights."]]