Skip to content

Commit ced2ef1

Browse files
committed
Clarify alwaysFlush comment refers to Lambda, not serverless generally
1 parent 6a7601f commit ced2ef1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎dd-trace-core/src/main/java/datadog/trace/common/writer/WriterFactory.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ public static Writer createWriter(
140140
final RemoteApi remoteApi =
141141
createDDIntakeRemoteApi(config, commObjects, featuresDiscovery, trackType);
142142

143-
// In a serverless environment the execution environment can freeze as soon as the handler
144-
// returns, before this writer's periodic flush timer next fires -- flush synchronously so
145-
// buffered events (e.g. LLM Observability spans) aren't lost when that happens.
143+
// In Lambda the execution environment can freeze as soon as the handler returns, before
144+
// this writer's periodic flush timer next fires -- flush synchronously so buffered events
145+
// (e.g. LLM Observability spans) aren't lost when that happens.
146146
boolean alwaysFlush =
147147
config.isAgentConfiguredUsingDefault()
148148
&& ServerlessInfo.get().isRunningInServerlessEnvironment();

0 commit comments

Comments
 (0)