Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ further_reading:
---

## Setup

<div class="alert alert-info">A sample application is <a href="https://github.com/DataDog/serverless-gcp-sample-apps/tree/main/cloud-run/in-process/dotnet">available on GitHub</a>.</div>

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`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ further_reading:
---

## Setup

<div class="alert alert-info">A sample application is <a href="https://github.com/DataDog/serverless-gcp-sample-apps/tree/main/cloud-run/in-process/go">available on GitHub</a>.</div>

1. **Install the Datadog Go tracer**.

1. In your main application, add the tracing library from `dd-trace-go`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ further_reading:
---

## Setup

<div class="alert alert-info">A sample application is <a href="https://github.com/DataDog/serverless-gcp-sample-apps/tree/main/cloud-run/in-process/java">available on GitHub</a>.</div>

1. **Install the Datadog Java tracer**.

1. Add the Datadog Java tracer to your Dockerfile:
Expand All @@ -33,7 +36,7 @@ ENV JAVA_TOOL_OPTIONS="-javaagent:agent.jar"
</dependency>
{{< /code-block >}}
{{% /tab %}}

{{% tab "Gradle" %}}
{{< code-block lang="groovy" disable_copy="false" >}}
implementation 'com.datadoghq:dd-trace-api:DD_TRACE_JAVA_VERSION_HERE'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ further_reading:
---

## Setup

<div class="alert alert-info">A sample application is <a href="https://github.com/DataDog/serverless-gcp-sample-apps/tree/main/cloud-run/in-process/node">available on GitHub</a>.</div>

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 >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ further_reading:
---

## Setup

<div class="alert alert-info">A sample application is <a href="https://github.com/DataDog/serverless-gcp-sample-apps/tree/main/cloud-run/in-process/php">available on GitHub</a>.</div>

1. **Install the Datadog PHP tracer** in your Dockerfile.

{{< code-block lang="dockerfile" filename="Dockerfile" disable_copy="false" collapsible="true" >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ further_reading:
---

## Setup

<div class="alert alert-info">A sample application is <a href="https://github.com/DataDog/serverless-gcp-sample-apps/tree/main/cloud-run/in-process/python">available on GitHub</a>.</div>

1. **Install the Datadog Python tracer** in your Dockerfile.

{{< code-block lang="dockerfile" filename="Dockerfile" disable_copy="false" collapsible="true" >}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ further_reading:
---

## Setup

<div class="alert alert-info">A sample application is <a href="https://github.com/DataDog/serverless-gcp-sample-apps/tree/main/cloud-run/in-process/ruby">available on GitHub</a>.</div>

1. **Install the Datadog Ruby tracer**.

Add the `datadog` gem to your Gemfile:
Expand Down
11 changes: 10 additions & 1 deletion layouts/shortcodes/gcr-configure-env-vars.en.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand All @@ -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
[1005]: /logs/log_configuration/pipelines
[1006]: https://cloud.google.com/run/docs/configuring/services/labels
Loading