diff --git a/content/en/serverless/azure_container_apps/sidecar/nodejs.md b/content/en/serverless/azure_container_apps/sidecar/nodejs.md index baa9a5cbaeb..190056511fd 100644 --- a/content/en/serverless/azure_container_apps/sidecar/nodejs.md +++ b/content/en/serverless/azure_container_apps/sidecar/nodejs.md @@ -92,13 +92,13 @@ logger.info('Hello world!');
Datadog's Continuous Profiler is available in preview for Azure Container Apps.
-{{% serverless-init-env-vars-sidecar language="nodejs" defaultSource="cloudrun" %}} +{{% serverless-init-env-vars-sidecar language="nodejs" defaultSource="containerapp" %}} {{% svl-tracing-env %}} ## Troubleshooting -{{% serverless-init-troubleshooting productNames="Cloud Run services" %}} +{{% serverless-init-troubleshooting productNames="Azure Container Apps" %}} ## Further reading diff --git a/layouts/shortcodes/serverless-init-configure.html b/layouts/shortcodes/serverless-init-configure.html index fd6babcec3f..d3ffc11156a 100644 --- a/layouts/shortcodes/serverless-init-configure.html +++ b/layouts/shortcodes/serverless-init-configure.html @@ -1,6 +1,6 @@ After the container is built and pushed to your registry, set the required environment variables for the Datadog Agent: - - `DD_API_KEY`: Your [Datadog API key][1001], used to send data to your Datadog account. For privacy and safety, configure this API key as a Google Cloud Secret. + - `DD_API_KEY`: Your [Datadog API key][1001], used to send data to your Datadog account. For privacy and safety, configure this API key as a {{ if or (eq (.Get "cloudrun") "true") (eq (.Get "cloudrun_jobs") "true") }}Google Cloud Secret{{ else }}Container Apps secret{{ end }}. - `DD_SITE`: Your [Datadog site][1002]. For example, `datadoghq.com`. For more environment variables, see the [Environment variables](#environment-variables) section on this page.{{ if eq (.Get "cloudrun") "true" }} diff --git a/layouts/shortcodes/serverless-init-env-vars-sidecar.html b/layouts/shortcodes/serverless-init-env-vars-sidecar.html index 7298a84925e..cf3246ca066 100644 --- a/layouts/shortcodes/serverless-init-env-vars-sidecar.html +++ b/layouts/shortcodes/serverless-init-env-vars-sidecar.html @@ -5,6 +5,9 @@ | `DD_API_KEY` | [Datadog API key][1001] - **Required**| Sidecar container | | `DD_SITE` | [Datadog site][1002] - **Required** | Sidecar container | | `DD_SERVICE` | Datadog Service name. **Required** | Both containers | +{{ if eq (.Get "defaultSource") "containerapp" }}| `DD_AZURE_SUBSCRIPTION_ID` | Azure Subscription ID. **Required** | Sidecar container | +| `DD_AZURE_RESOURCE_GROUP` | Azure Resource Group name. **Required** | Sidecar container | +{{ end -}} | `DD_SERVERLESS_LOG_PATH` | The path where the sidecar should tail logs from. Recommended to set to `/shared-volume/logs/app.log`. | Sidecar container | | `DD_LOGS_INJECTION` | When true, enrich all logs with trace data for supported loggers. See [Correlate Logs and Traces][1003] for more information. | Application container | | `DD_VERSION` | See [Unified Service Tagging][1004]. | Both containers |