[aws] Combine Extensions.AWS, Instrumentation.AWS, & Instrumentation.AWSLambda into a single tag #2203
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.
Changes
Use the same tag prefix (
MinVerTagPrefix
) forOpenTelemetry.Extensions.AWS
,OpenTelemetry.Instrumentation.AWS
, &OpenTelemetry.Instrumentation.AWSLambda
.Add STJ reference at
6.0.10
/8.0.5
forOpenTelemetry.Instrumentation.AWSLambda
since it uses the source generator.Details
@srprash @ppittle @Oberon00 @rypdal
My goal here is to resolve the last build breaks due to vulnerable STJ package versions:
The reason this is happening is
OpenTelemetry.Instrumentation.AWS
andOpenTelemetry.Instrumentation.AWSLambda
referenceOpenTelemetry.Extensions.AWS
through NuGet, they don't useProjectReference
.There isn't anything necessarily wrong with that, but it is a code smell IMO. Tightly coupled projects should be released together.
Examples:
OpenTelemetry.Instrumentation.AspNet & OpenTelemetry.Instrumentation.AspNet.TelemetryHttpModule
OpenTelemetry.PersistentStorage.Abstractions & OpenTelemetry.PersistentStorage.FileSystem
What this PR is doing is using the same
MinVerTagPrefix
forOpenTelemetry.Extensions.AWS
,OpenTelemetry.Instrumentation.AWS
, &OpenTelemetry.Instrumentation.AWSLambda
so they will always be versioned and released together.We could just put out a NuGet for
OpenTelemetry.Extensions.AWS
to resolve the issue but I feel this is better design and overall better for users. Less chance for mismatched versions and conflicts for the coupled projects and their dependencies.Please approve this PR if this works for AWS group!
PS: We could version all of the AWS packages together. Might simplify the versioning/upgrade story for everything. But I only did the coupled ones here. Happy to do them all if that is something AWS group wants.
Merge requirement checklist