---
title: Instrumenting Cloud Run Functions
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > Serverless > Google Cloud Run > Instrumenting Cloud Run Functions
---

# Instrumenting Cloud Run Functions

{% alert level="info" %}
**Looking for 1st gen Cloud Run functions?** If you're using Cloud Run functions (1st gen), previously known as Cloud Functions (1st gen), see [Instrumenting 1st Gen Cloud Run Functions](https://docs.datadoghq.com/serverless/google_cloud_run/functions_1st_gen).
{% /alert %}

First, set up the [Datadog-Google Cloud Platform integration](https://docs.datadoghq.com/integrations/google-cloud-platform/) to collect metrics and logs from Google Cloud services. Remember to add the `cloud asset viewer` role to your service account and enable the Cloud Asset Inventory API in Google Cloud.

Then, select your runtime below for instructions on how to instrument your application:

- [Python](https://docs.datadoghq.com/serverless/google_cloud_run/functions/python/)
- [Node.js](https://docs.datadoghq.com/serverless/google_cloud_run/functions/nodejs/)
- [go](https://docs.datadoghq.com/serverless/google_cloud_run/functions/go/)
- [Java](https://docs.datadoghq.com/serverless/google_cloud_run/functions/java/)
- [.NET](https://docs.datadoghq.com/serverless/google_cloud_run/functions/dotnet/)
- [Ruby](https://docs.datadoghq.com/serverless/google_cloud_run/functions/ruby/)
