diff --git a/content/en/serverless/google_cloud_run/containers/in_process/dotnet.md b/content/en/serverless/google_cloud_run/containers/in_process/dotnet.md index b74e0d73131..4e4b42d590f 100644 --- a/content/en/serverless/google_cloud_run/containers/in_process/dotnet.md +++ b/content/en/serverless/google_cloud_run/containers/in_process/dotnet.md @@ -13,6 +13,9 @@ further_reading: --- ## Setup + +
A sample application is available on GitHub.
+ 1. **Install the Datadog .NET tracer** in your Dockerfile. Because GitHub requests are rate limited, you must pass a GitHub token saved in the environment variable `GITHUB_TOKEN` as a [Docker build secret][1] `--secret id=github-token,env=GITHUB_TOKEN`. diff --git a/content/en/serverless/google_cloud_run/containers/in_process/go.md b/content/en/serverless/google_cloud_run/containers/in_process/go.md index 6e9ca2c710b..0e701ff2988 100644 --- a/content/en/serverless/google_cloud_run/containers/in_process/go.md +++ b/content/en/serverless/google_cloud_run/containers/in_process/go.md @@ -13,6 +13,9 @@ further_reading: --- ## Setup + +
A sample application is available on GitHub.
+ 1. **Install the Datadog Go tracer**. 1. In your main application, add the tracing library from `dd-trace-go`. diff --git a/content/en/serverless/google_cloud_run/containers/in_process/java.md b/content/en/serverless/google_cloud_run/containers/in_process/java.md index 047b08e060e..c152d50760a 100644 --- a/content/en/serverless/google_cloud_run/containers/in_process/java.md +++ b/content/en/serverless/google_cloud_run/containers/in_process/java.md @@ -13,6 +13,9 @@ further_reading: --- ## Setup + +
A sample application is available on GitHub.
+ 1. **Install the Datadog Java tracer**. 1. Add the Datadog Java tracer to your Dockerfile: @@ -33,7 +36,7 @@ ENV JAVA_TOOL_OPTIONS="-javaagent:agent.jar" {{< /code-block >}} {{% /tab %}} - + {{% tab "Gradle" %}} {{< code-block lang="groovy" disable_copy="false" >}} implementation 'com.datadoghq:dd-trace-api:DD_TRACE_JAVA_VERSION_HERE' diff --git a/content/en/serverless/google_cloud_run/containers/in_process/nodejs.md b/content/en/serverless/google_cloud_run/containers/in_process/nodejs.md index f7b33408215..5c6c350a3d3 100644 --- a/content/en/serverless/google_cloud_run/containers/in_process/nodejs.md +++ b/content/en/serverless/google_cloud_run/containers/in_process/nodejs.md @@ -13,10 +13,13 @@ further_reading: --- ## Setup + +
A sample application is available on GitHub.
+ 1. **Install the Datadog Node.js tracer**. 1. In your main application, add `dd-trace-js`. - + {{< code-block lang="shell" disable_copy="false" >}} npm install dd-trace --save {{< /code-block >}} diff --git a/content/en/serverless/google_cloud_run/containers/in_process/php.md b/content/en/serverless/google_cloud_run/containers/in_process/php.md index 5a1bbc5e8a5..a656f861daf 100644 --- a/content/en/serverless/google_cloud_run/containers/in_process/php.md +++ b/content/en/serverless/google_cloud_run/containers/in_process/php.md @@ -13,6 +13,9 @@ further_reading: --- ## Setup + +
A sample application is available on GitHub.
+ 1. **Install the Datadog PHP tracer** in your Dockerfile. {{< code-block lang="dockerfile" filename="Dockerfile" disable_copy="false" collapsible="true" >}} diff --git a/content/en/serverless/google_cloud_run/containers/in_process/python.md b/content/en/serverless/google_cloud_run/containers/in_process/python.md index 8a10f1fccd5..1297c6ef0da 100644 --- a/content/en/serverless/google_cloud_run/containers/in_process/python.md +++ b/content/en/serverless/google_cloud_run/containers/in_process/python.md @@ -13,6 +13,9 @@ further_reading: --- ## Setup + +
A sample application is available on GitHub.
+ 1. **Install the Datadog Python tracer** in your Dockerfile. {{< code-block lang="dockerfile" filename="Dockerfile" disable_copy="false" collapsible="true" >}} diff --git a/content/en/serverless/google_cloud_run/containers/in_process/ruby.md b/content/en/serverless/google_cloud_run/containers/in_process/ruby.md index 4bf54d5c3f0..dc4851e289c 100644 --- a/content/en/serverless/google_cloud_run/containers/in_process/ruby.md +++ b/content/en/serverless/google_cloud_run/containers/in_process/ruby.md @@ -13,6 +13,9 @@ further_reading: --- ## Setup + +
A sample application is available on GitHub.
+ 1. **Install the Datadog Ruby tracer**. Add the `datadog` gem to your Gemfile: diff --git a/layouts/shortcodes/gcr-configure-env-vars.en.html b/layouts/shortcodes/gcr-configure-env-vars.en.html index 0473983767d..6af4cce9c24 100644 --- a/layouts/shortcodes/gcr-configure-env-vars.en.html +++ b/layouts/shortcodes/gcr-configure-env-vars.en.html @@ -15,6 +15,14 @@ --update-env-vars=DD_SITE=$DD_SITE \ ``` +5. Finally, add a service label in Google Cloud. In your Cloud Run service's info panel, add a label with the following key and value: + + | Key | Value | + |-----------|-------------------------------------------------------------| + | `service` | The name of your service. Matches the value provided as the `DD_SERVICE` environment variable. | + + See [Configure labels for services][1006] in the Cloud Run documentation for instructions. + ### Environment variables | Variable | Description | @@ -33,4 +41,5 @@ [1002]: /getting_started/site/ [1003]: /tracing/other_telemetry/connect_logs_and_traces/ [1004]: /getting_started/tagging/unified_service_tagging/ -[1005]: /logs/log_configuration/pipelines \ No newline at end of file +[1005]: /logs/log_configuration/pipelines +[1006]: https://cloud.google.com/run/docs/configuring/services/labels