Skip to content

Commit a3dc563

Browse files
Lewis-Eclaude
andauthored
[SVLS-9268] Document dropped logs risk for in-container Cloud Run on cold starts (#37695)
* [SVLS-9268] Document dropped logs risk for in-container Cloud Run on cold starts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Pass in_container param to shortcode on Cloud Run in-container pages Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a66f50b commit a3dc563

8 files changed

Lines changed: 11 additions & 7 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ logger.LogInformation("Hello World!");
8484

8585
## Troubleshooting
8686

87-
{{% serverless-init-troubleshooting productNames="Cloud Run services" %}}
87+
{{% serverless-init-troubleshooting productNames="Cloud Run services" in_container="true" %}}
8888

8989
## Further reading
9090

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ go get github.com/DataDog/dd-trace-go/contrib/net/http/v2
7979

8080
## Troubleshooting
8181

82-
{{% serverless-init-troubleshooting productNames="Cloud Run services" %}}
82+
{{% serverless-init-troubleshooting productNames="Cloud Run services" in_container="true" %}}
8383

8484
## Further reading
8585

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ logger.info("Hello World!");
9696

9797
## Troubleshooting
9898

99-
{{% serverless-init-troubleshooting productNames="Cloud Run services" %}}
99+
{{% serverless-init-troubleshooting productNames="Cloud Run services" in_container="true" %}}
100100

101101
## Further reading
102102

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ gcloud pubsub subscriptions update \
147147

148148
## Troubleshooting
149149

150-
{{% serverless-init-troubleshooting productNames="Cloud Run services" %}}
150+
{{% serverless-init-troubleshooting productNames="Cloud Run services" in_container="true" %}}
151151

152152
## Further reading
153153

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ apk add libgcc
6363

6464
## Troubleshooting
6565

66-
{{% serverless-init-troubleshooting productNames="Cloud Run services" %}}
66+
{{% serverless-init-troubleshooting productNames="Cloud Run services" in_container="true" %}}
6767

6868
## Further reading
6969

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ logger.info("Hello world!")
9696

9797
## Troubleshooting
9898

99-
{{% serverless-init-troubleshooting productNames="Cloud Run services" %}}
99+
{{% serverless-init-troubleshooting productNames="Cloud Run services" in_container="true" %}}
100100

101101
## Further reading
102102

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ logger.info "Hello world!"
6666

6767
## Troubleshooting
6868

69-
{{% serverless-init-troubleshooting productNames="Cloud Run services" %}}
69+
{{% serverless-init-troubleshooting productNames="Cloud Run services" in_container="true" %}}
7070

7171
## Further reading
7272

layouts/shortcodes/serverless-init-troubleshooting.en.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@ To have your {{ .Get "productNames" }} appear in the [software catalog][2001], y
88

99
{{ if eq (.Get "sidecar") "true" }}If you are missing logs or traces during container shutdown, specify a container start up order to make your main container depend on the sidecar container.
1010
{{ end }}
11+
12+
{{ if eq (.Get "in_container") "true" }}
13+
If you are using [request-based billing](https://docs.cloud.google.com/run/docs/container-contract#cpu) for a Google Cloud Run application instrumented in-container, very short requests may lead to dropped logs during the post-request CPU throttling. You can control the speed at which logs are sent to Datadog using the [`DD_LOGS_CONFIG_BATCH_WAIT`](https://docs.datadoghq.com/agent/logs/log_transport/?tab=https#configure-the-batch-wait-time) environment variable. Set `DD_LOGS_CONFIG_BATCH_WAIT` to a value shorter than your typical request duration to avoid dropped logs. Sidecar instrumentation also prevents this issue, as the sidecar is not affected by request-based CPU throttling.
14+
{{ end }}
1115
[2001]: /internal_developer_portal/software_catalog/

0 commit comments

Comments
 (0)