You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For more information, see [Tracing Node.js applications](https://docs.datadoghq.com/tracing/trace_collection/automatic_instrumentation/dd_libraries/nodejs/#getting-started).
24
+
For more information, see [Tracing Node.js applications][1].
25
25
26
26
## 2. Install Serverless-Init
27
27
@@ -30,9 +30,6 @@ Add the following instructions and arguments to your Dockerfile.
After the container is built and pushed to your registry, set the required environment variables for the Datadog Agent:
2
+
3
+
-`DD_API_KEY`: Datadog API key, used to send data to your Datadog account. It should be configured as a Google Cloud Secret for privacy and safety.
4
+
-`DD_SITE`: Datadog endpoint and website. Select your site on the right side of this page. Your site is: {{< region-param key="dd_site" code="true" >}}.
5
+
6
+
For more environment variables and their function, see [Environment Variables](#environment-variables).
7
+
8
+
The following command deploys the service and allows any external connection to reach it. In this example, your service listening is set to port 8080. Ensure that this port number matches the exposed port inside of your Dockerfile.
9
+
10
+
```shell
11
+
gcloud run deploy <APP_NAME>
12
+
--image=gcr.io/<YOUR_PROJECT>/<APP_NAME> \
13
+
--port=8080 \
14
+
--update-env-vars=DD_API_KEY=$DD_API_KEY \
15
+
--update-env-vars=DD_SITE=$DD_SITE \
16
+
```
17
+
18
+
### Environment variables
19
+
20
+
| Variable | Description |
21
+
| -------- | ----------- |
22
+
|`DD_API_KEY`|[Datadog API key][1] - **Required**|
23
+
|`DD_SITE`|[Datadog site][2] - **Required**|
24
+
|`DD_LOGS_ENABLED`| When true, send logs (stdout and stderr) to Datadog. Defaults to false. |
25
+
|`DD_SERVICE`| See [Unified Service Tagging][3]. |
26
+
|`DD_VERSION`| See [Unified Service Tagging][3]. |
0 commit comments