Skip to content

Flush native Lambda DSM checkpoints before runtime freeze - #13252

Draft
joeyzhao2018 wants to merge 1 commit into
joey/lambda-08-dsm-consumptionfrom
joey/lambda-08-dsm-flush
Draft

joeyzhao2018 wants to merge 1 commit into
joey/lambda-08-dsm-consumptionfrom
joey/lambda-08-dsm-flush

Conversation

@joeyzhao2018

@joeyzhao2018 joeyzhao2018 commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

What Does This Do

Flush native Lambda DSM checkpoints, including the current bucket, before returning from handler instrumentation. Bound the wait to one second and retain interruption/failure reporting.

Motivation

Give Java-owned DSM data a chance to reach existing transport before Lambda freezes the runtime.

Additional Notes

A timeout cannot guarantee delivery or cancel an in-flight request. No lifecycle acknowledgment is involved. Proxy duplicate-consumption ownership and deployed freeze/delivery checks remain rollout blockers.

Validation: Revised complete stack: 513 focused core tests, 12 forked Lambda tests and 40 handler tests passed; the handler total includes two zero-lifecycle-HTTP cases. Independent P3 lifecycle, P8b DSM and P10 legacy/native boundary checks also passed. Spotless applied. Core validation uses a local init script to omit an unused private container dependency; repository build settings are unchanged. Deployed certification remains pending.

Contributor Checklist

  • Focused local validation and formatting.
  • Required labels and Lambda ownership patterns retained.
  • Deployment, platform compatibility and performance gates before rollout.

Jira ticket: APMSVLS-689.

Previous: #13251

Next: #13253

@joeyzhao2018 joeyzhao2018 added type: feature Enhancements and improvements tag: serverless Serverless support inst: aws lambda AWS Lambda instrumentation tag: ai generated Largely based on code generated by an AI or LLM labels Nov 5, 2026
@dd-octo-sts

dd-octo-sts Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

🟢 Java Benchmark SLOs — All performance SLOs passed

Suite Status
Startup 🟢 pass

SLO thresholds are defined here based on automatically generated metrics. A warning is raised when results are within 5% of the threshold.

PR vs. master results
Scenario Candidate master Δ (95% CI of mean)
startup:insecure-bank:iast:Agent 14.00 s 13.98 s [-0.5%; +0.8%] (no difference)
startup:insecure-bank:tracing:Agent 12.94 s 13.01 s [-1.2%; +0.2%] (no difference)
startup:petclinic:appsec:Agent 17.22 s 17.10 s [-0.1%; +1.5%] (no difference)
startup:petclinic:iast:Agent 17.07 s 17.18 s [-1.4%; +0.2%] (no difference)
startup:petclinic:profiling:Agent 16.74 s 16.81 s [-1.5%; +0.6%] (no difference)
startup:petclinic:sca:Agent 17.16 s 16.88 s [+0.8%; +2.6%] (maybe worse)
startup:petclinic:tracing:Agent 16.20 s 16.21 s [-1.2%; +1.1%] (no difference)

Commit: 6e59dade · CI Pipeline · Benchmarking Platform UI


Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion.

@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

🎯 Code Coverage (details)
• Patch Coverage: 53.12%
• Overall Coverage: 60.19% (-0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 6e59dad | Docs | Give us feedback!

@joeyzhao2018
joeyzhao2018 force-pushed the joey/lambda-08-dsm-consumption branch from 1aef025 to 7efc263 Compare November 6, 2026 11:37
@joeyzhao2018
joeyzhao2018 force-pushed the joey/lambda-08-dsm-flush branch from 194069a to 6e59dad Compare November 6, 2026 11:37

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inst: aws lambda AWS Lambda instrumentation tag: ai generated Largely based on code generated by an AI or LLM tag: serverless Serverless support type: feature Enhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant