Skip to content

Commit 59cc524

Browse files
committed
Only show relevant language docs in configure env vars table
1 parent cb81da2 commit 59cc524

File tree

8 files changed

+10
-9
lines changed

8 files changed

+10
-9
lines changed

content/en/serverless/google_cloud_run/containers/in_process/dotnet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ For more information, see [Correlating .NET Logs and Traces][3].
6161

6262
## 4. Configure your application
6363

64-
{{% gcr-configure-env-vars %}}
64+
{{% gcr-configure-env-vars language="csharp" %}}
6565

6666
## Troubleshooting
6767

content/en/serverless/google_cloud_run/containers/in_process/go.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ For more information, see [Correlating Go Logs and Traces][3].
5959

6060
## 4. Configure your application
6161

62-
{{% gcr-configure-env-vars %}}
62+
{{% gcr-configure-env-vars language="go" %}}
6363

6464
## Troubleshooting
6565

content/en/serverless/google_cloud_run/containers/in_process/java.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ For more information, see [Correlating Java Logs and Traces][2].
7070

7171
## 4. Configure your application
7272

73-
{{% gcr-configure-env-vars %}}
73+
{{% gcr-configure-env-vars language="java" %}}
7474

7575
## Troubleshooting
7676

content/en/serverless/google_cloud_run/containers/in_process/nodejs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ For more information, see [Correlating Node.js Logs and Traces][2].
6767

6868
## 4. Configure your application
6969

70-
{{% gcr-configure-env-vars %}}
70+
{{% gcr-configure-env-vars language="nodejs" %}}
7171

7272
## Troubleshooting
7373

content/en/serverless/google_cloud_run/containers/in_process/php.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ For more information, see [Correlating PHP Logs and Traces][2].
4545

4646
## 4. Configure your application
4747

48-
{{% gcr-configure-env-vars %}}
48+
{{% gcr-configure-env-vars language="php" %}}
4949

5050
## Troubleshooting
5151

content/en/serverless/google_cloud_run/containers/in_process/python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ For more information, see [Correlating Python Logs and Traces][2].
6060

6161
## 4. Configure your application
6262

63-
{{% gcr-configure-env-vars %}}
63+
{{% gcr-configure-env-vars language="python" %}}
6464

6565
## Troubleshooting
6666

content/en/serverless/google_cloud_run/containers/in_process/ruby.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ For more information, see [Correlating Ruby Logs and Traces][2].
4646

4747
## 4. Configure your application
4848

49-
{{% gcr-configure-env-vars %}}
49+
{{% gcr-configure-env-vars language="ruby" %}}
5050

5151
## Troubleshooting
5252

layouts/shortcodes/gcr-configure-env-vars.en.md renamed to layouts/shortcodes/gcr-configure-env-vars.en.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@
2222
| `DD_API_KEY` | [Datadog API key](/account_management/api-app-keys/#api-keys) - **Required**|
2323
| `DD_SITE` | [Datadog site](/getting_started/site/) - **Required** |
2424
| `DD_LOGS_ENABLED` | When true, send logs (stdout and stderr) to Datadog. Defaults to false. |
25-
| `DD_LOGS_INJECTION`| When true, enrich all logs with trace data for supported loggers in [Java](/tracing/other_telemetry/connect_logs_and_traces/java/?tab=log4j2), [Node.js](/tracing/other_telemetry/connect_logs_and_traces/nodejs), [.NET](/tracing/other_telemetry/connect_logs_and_traces/dotnet?tab=serilog), and [PHP](/tracing/other_telemetry/connect_logs_and_traces/php). See additional docs for [Python](/tracing/other_telemetry/connect_logs_and_traces/python), [Go](/tracing/other_telemetry/connect_logs_and_traces/go), and [Ruby](/tracing/other_telemetry/connect_logs_and_traces/ruby). |
25+
{{ if in (slice "java" "nodejs" "csharp" "php") (.Get "language") }}| `DD_LOGS_INJECTION`| When true, enrich all logs with trace data for supported loggers. See [Correlate Logs and Traces](/tracing/other_telemetry/connect_logs_and_traces/) for more information. |
26+
{{ end }}
2627
| `DD_SERVICE` | See [Unified Service Tagging](/getting_started/tagging/unified_service_tagging/). **Recommended** |
2728
| `DD_VERSION` | See [Unified Service Tagging](/getting_started/tagging/unified_service_tagging/). **Recommended** |
2829
| `DD_ENV` | See [Unified Service Tagging](/getting_started/tagging/unified_service_tagging/). **Recommended** |
29-
| `DD_SOURCE` | Set the log source to enable a [Log Pipeline](/logs/log_configuration/pipelines) for advanced parsing. Set to your runtime language (`python`, `nodejs`, `go`, `csharp`, `java`, `ruby`, `php`) to automatically apply language-specific parsing rules, or use your custom pipeline. Defaults to `cloudrun`. |
30+
| `DD_SOURCE` | Set the log source to enable a [Log Pipeline](/logs/log_configuration/pipelines) for advanced parsing. To automatically apply language-specific parsing rules, set to `{{ .Get "language" }}`, or use your custom pipeline. Defaults to `cloudrun`. |
3031
| `DD_TAGS` | Add custom tags to your logs, metrics, and traces. Tags should be comma separated in key/value format (e.g. `key1:value1,key2:value2`). |

0 commit comments

Comments
 (0)