feat(examples): add Workflow Insight example - #693
Draft
wangyb-A wants to merge 3 commits into
Draft
Conversation
wangyb-A
force-pushed
the
workflow-insight-plugin
branch
from
September 9, 2026 18:42
ce1de5f to
661ff21
Compare
wangyb-A
force-pushed
the
workflow-insight-example
branch
from
September 9, 2026 18:44
b77d49d to
7682f05
Compare
wangyb-A
added this pull request to stack #697
September 9, 2026 18:55
wangyb-A
removed this pull request from stack #697
September 9, 2026 18:56
wangyb-A
force-pushed
the
workflow-insight-plugin
branch
from
September 9, 2026 20:48
661ff21 to
7f3bdc4
Compare
wangyb-A
force-pushed
the
workflow-insight-example
branch
from
September 9, 2026 20:59
4dba5db to
3de314d
Compare
Contributor
Author
|
/ai review |
Contributor
Codex AI reviewNo actionable findings. Residual risk is limited to CloudWatch ingestion and Lambda log-envelope variations, which are covered only by the cloud-gated test. Reviewed commit |
wangyb-A
force-pushed
the
workflow-insight-example
branch
from
September 9, 2026 22:18
3de314d to
817e80a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue Link, if available
Depends on the Workflow Insight plugin merged in #661.
Description
Adds a customer-facing Workflow Insight example under the
examplesmodule. The handler registers an emptyWorkflowInsightConfigso customers can see the minimum setup. The defaults useLambdaLogExporter, emit on completion, summarize top-level operations, and include input, output, and errors. Because the exporter writes to the function's own Lambda logs, the example requires no bucket, dedicated log group, or additional Lambda-role permissions.Also adds local example coverage and a cloud integration assertion that invokes the deployed function, finds its uniquely correlated Workflow Insight record in CloudWatch Logs, accepts raw and structured Lambda log formats, and validates the emitted schema, status, content, and operation summaries.
Demo/Screenshots
Not applicable; this is a Java handler example and automated integration coverage with no UI changes.
Checklist
Testing
git diff --checkmvn -B -q spotless:check --file pom.xmlmvn -q -pl examples -am clean verifymvn -q clean verifyWorkflowInsightExampleFunction, its handler, managed log group, andworkflow-insight-examplesuffixmainso the normal Java 17/21/25 E2E workflow builds, deploys, invokes, and validates the cloud exampleUnit Tests
Yes.
WorkflowInsightExampleTestusesLocalDurableTestRunnerto verify successful output, default input behavior, and both named operations.Integration Tests
Yes.
CloudBasedIntegrationTest#testWorkflowInsightExampleuses the deployed durable function and polls its managed CloudWatch log group for the actualLambdaLogExporterrecord. The normal E2E workflow is now running against this PR head.Examples
Yes.
WorkflowInsightExampledemonstrates the minimum Workflow Insight plugin configuration with zero additional deployment infrastructure.