diff --git a/src/Shared/AWS/AWSSemanticConventions.cs b/src/Shared/AWS/AWSSemanticConventions.cs index c6c771dc99..46c5a59b6d 100644 --- a/src/Shared/AWS/AWSSemanticConventions.cs +++ b/src/Shared/AWS/AWSSemanticConventions.cs @@ -66,7 +66,11 @@ internal partial class AWSSemanticConventions /// Per SemanticConventionVersion, default should stay as /// until next major version bump. /// - internal const SemanticConventionVersion DefaultSemanticConventionVersion = SemanticConventionVersion.V1_28_0; + internal const SemanticConventionVersion DefaultSemanticConventionVersion = + // Beta Release + SemanticConventionVersion.Legacy; + // RC Release + //SemanticConventionVersion.V1_28_0; private readonly SemanticConventionVersion semanticConventionVersion; @@ -488,6 +492,9 @@ private AWSSemanticConventionsBase GetSemanticConventionVersion() case SemanticConventionVersion.V1_28_0: return new AWSSemanticConventions_V1_28_0(); + case SemanticConventionVersion.Legacy: + return new AWSSemanticConventionsLegacy(); + default: throw new InvalidEnumArgumentException( argumentName: nameof(SemanticConventionVersion), diff --git a/src/Shared/AWS/SemanticConventionVersion.cs b/src/Shared/AWS/SemanticConventionVersion.cs index 53c6156878..e00e600699 100644 --- a/src/Shared/AWS/SemanticConventionVersion.cs +++ b/src/Shared/AWS/SemanticConventionVersion.cs @@ -73,6 +73,18 @@ public enum SemanticConventionVersion /// Latest = 0, + /// + /// Represents the mixture of Semantic Conventions used in OpenTelemetry.*.AWS libraries + /// in 1.10.0-beta.x. + /// + /// This allows users to upgrade to the latest beta nuget package without experiencing a change in + /// Semantic Convention output. Then there is an opportunity for users to trial . + /// + /// This option will be REMOVED in the next Release Candidate. + /// + [Obsolete("This will be removed in the 1.10.0-RC", error: false)] + Legacy = -1, + /// /// Pin to the specific state of all Semantic Conventions as of the 1.28.0 /// release. See: