Repository navigation
Conversation
normj
force-pushed
the
normj/durable-otel-annotations
branch
from
November 18, 2026 23:42
a4ca338 to
69bdf5a
Compare
normj
force-pushed
the
normj/durable-otel-annotations
branch
2 times, most recently
from
November 19, 2026 00:16
a4b63ce to
7e82de8
Compare
Tracing = DurableTracing.Execution or Invocation adds the OpenTelemetry plugin to the generated handler. PluginProvider names a static method on the same class that returns IDurableInstrumentationPluginFactory instances. When both are set the OpenTelemetry plugin runs first. The generated code calls both directly (no reflection) and is unchanged when neither option is set. New diagnostics AWSLambda0146 to 0148 cover a missing plugin API, a missing OpenTelemetry package reference and an invalid PluginProvider.
normj
force-pushed
the
normj/durable-otel-annotations
branch
from
November 20, 2026 01:25
7e82de8 to
bc7e8d4
Compare
This branch has not been deployed
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.
Stacked on #2612 (base is
normj/durable-otel-package). Merge #2611 and #2612 first.What
Two new options on
[DurableExecution]:Tracing = DurableTracing.Execution | Invocationadds the OpenTelemetry plugin fromAmazon.Lambda.DurableExecution.OpenTelemetry.PluginProvider = nameof(Method)names a static parameterless method on the same class returningIEnumerable<IDurableInstrumentationPluginFactory>(arrays and lists work).If both are set they combine, with the OpenTelemetry plugin first. The generated handler calls both directly, with no reflection, so it stays trim and AOT friendly. Output is unchanged when neither option is set.
Notes
Tracingdoes not set X-RayTracing: Activeinserverless.template. Lambda only supplies the trace header when that is on, so it is documented rather than forced.PluginProvider).Tests
DurableExecutionPluginTests) with three snapshots; the generated code is compiled against the real API shapes.TestDurableServerlessAppnow uses both options against the real OTel package and builds.